예제 #1
0
 /**
  * Return keys by pattern
  *
  * @todo Make it use SCAN instead of KEYS
  *
  * @param  string $pattern
  * @return array
  */
 protected function getKeysByPattern($pattern)
 {
     $result = [];
     foreach ($this->connection->keys($pattern) as $key) {
         $result[] = $key;
     }
     return $result;
 }