芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/critterchoice.com/wp-content/mu-plugins/object-cache-pro/src/Clients/PhpRedis.php
getTracer(Redis::class, (string) \phpversion('redis')); } /** * Hijack `restore()` calls due to a bug in modern PhpRedis versions * when data mutations like compression are used. * * @param string $key * @param int $timeout * @param string $value * @return bool */ public function restore(string $key, int $timeout, string $value) { return $this->{$this->callback}(function () use ($key, $timeout, $value) { return $this->client->rawCommand('RESTORE', $key, $timeout, $value, 'REPLACE'); }, 'restore'); } /** * Pass `scan()` calls to the client with iterator reference. * * @param ?int $iterator * @param ?string $match * @param int $count * @return mixed */ public function scan(&$iterator, $match = null, $count = 0) { return $this->{$this->callback}(function () use (&$iterator, $match, $count) { return $this->client->scan($iterator, $match, $count); }, 'scan'); } /** * Pass `hscan()` calls to the client with iterator reference. * * @param mixed $key * @param ?int $iterator * @param ?string $match * @param int $count * @return mixed */ public function hscan($key, &$iterator, $match = null, $count = 0) { return $this->{$this->callback}(function () use ($key, &$iterator, $match, $count) { return $this->client->hscan($key, $iterator, $match, $count); }, 'hscan'); } /** * Pass `sscan()` calls to the client with iterator reference. * * @param mixed $key * @param ?int $iterator * @param ?string $match * @param int $count * @return mixed */ public function sscan($key, &$iterator, $match = null, $count = 0) { return $this->{$this->callback}(function () use ($key, &$iterator, $match, $count) { return $this->client->sscan($key, $iterator, $match, $count); }, 'sscan'); } /** * Pass `zscan()` calls to the client with iterator reference. * * @param string $key * @param ?int $iterator * @param ?string $match * @param int $count * @return mixed */ public function zscan($key, &$iterator, $match = null, $count = 0) { return $this->{$this->callback}(function () use ($key, &$iterator, $match, $count) { return $this->client->zscan($key, $iterator, $match, $count); }, 'zscan'); } }