Predis\ClientInterface::getOptions PHP Метод

getOptions() публичный Метод

Returns the client options specified upon initialization.
public getOptions ( ) : Predis\Configuration\OptionsInterface
Результат Predis\Configuration\OptionsInterface
    public function getOptions();

Usage Example

Пример #1
0
 private function deleteGlob($pattern)
 {
     $keys = $this->client->keys($pattern);
     $options = $this->client->getOptions();
     if (isset($options->prefix)) {
         $length = strlen($options->prefix->getPrefix());
         $keys = array_map(function ($key) use($length) {
             return substr($key, $length);
         }, $keys);
     }
     if (count($keys) === 0) {
         return;
     }
     $this->client->del($keys);
 }
All Usage Examples Of Predis\ClientInterface::getOptions