From d45c4d294c8d00358c63d4dcd8edf1eb37f008e7 Mon Sep 17 00:00:00 2001
From: michael-grunder class
- Redis (View source)
+ Redis (View source)
Redis __construct(array|null $options = null)
__destruct()
string _compress(string $value)
string _uncompress(string $value)
string _prefix(string $key)
string _serialize(mixed $value)
mixed _unserialize(string $value)
string _pack(mixed $value)
string _digest(mixed $value)
mixed _unpack(string $value)
mixed acl(string $subcmd, string ...$args)
Redis|int|false append(string $key, mixed $value)
Redis|bool auth(mixed $credentials)
Redis|bool bgSave()
Redis|bool bgrewriteaof()
Redis|array|false waitaof(int $numlocal, int $numreplicas, int $timeout)
Redis|int|false bitcount(string $key, int $start = 0, int $end = -1, bool $bybit = false)
Redis|int|false bitop(string $operation, string $deskey, string $srckey, string ...$other_keys)
Redis|int|false bitpos(string $key, bool $bit, int $start = 0, int $end = -1, bool $bybit = false)
Redis|array|null|false blPop(string|array $key_or_keys, string|float|int $timeout_or_key, mixed ...$extra_args)
Redis|array|null|false brPop(string|array $key_or_keys, string|float|int $timeout_or_key, mixed ...$extra_args)
Redis|string|false brpoplpush(string $src, string $dst, int|float $timeout)
Redis|array|false bzPopMax(string|array $key, string|int $timeout_or_key, mixed ...$extra_args)
Redis|array|false bzPopMin(string|array $key, string|int $timeout_or_key, mixed ...$extra_args)
Redis|array|null|false bzmpop(float $timeout, array $keys, string $from, int $count = 1)
Redis|array|null|false zmpop(array $keys, string $from, int $count = 1)
Redis|array|null|false blmpop(float $timeout, array $keys, string $from, int $count = 1)
Redis|array|null|false lmpop(array $keys, string $from, int $count = 1)
bool clearLastError()
mixed client(string $opt, mixed ...$args)
bool close()
mixed command(string|null $opt = null, mixed ...$args)
mixed config(string $operation, array|string|null $key_or_settings = null, string|null $value = null)
bool connect(string $host, int $port = 6379, float $timeout = 0, string|null $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array|null $context = null)
Redis|bool copy(string $src, string $dst, array|null $options = null)
Redis|int|false dbSize()
Redis|string debug(string $key)
Redis|int|false decr(string $key, int $by = 1)
DECRBY command.
Redis|int|false decrBy(string $key, int $value)
DECRBY command.
Redis|int|false del(array|string $key, string ...$other_keys)
Redis|int|false delex(string $key, array|null $options = null)
Redis|int|false delifeq(string $key, mixed $value)
Redis|int|false delete(array|string $key, string ...$other_keys) deprecated
Redis|bool discard()
Redis|string|false dump(string $key)
Redis|string|false echo(string $str)
mixed eval(string $script, array $args = [], int $num_keys = 0)
mixed eval_ro(string $script_sha, array $args = [], int $num_keys = 0)
mixed evalsha(string $sha1, array $args = [], int $num_keys = 0)
mixed evalsha_ro(string $sha1, array $args = [], int $num_keys = 0)
Redis|array|false exec()
Redis|int|bool exists(mixed $key, mixed ...$other_keys)
Redis|bool expire(string $key, int $timeout, string|null $mode = null)
Redis|bool expireAt(string $key, int $timestamp, string|null $mode = null)
Redis|bool failover(array|null $to = null, bool $abort = false, int $timeout = 0)
Redis|int|false expiretime(string $key)
Redis|int|false pexpiretime(string $key)
mixed fcall(string $fn, array $keys = [], array $args = [])
mixed fcall_ro(string $fn, array $keys = [], array $args = [])
Redis|bool flushAll(bool|null $sync = null)
Redis|bool flushDB(bool|null $sync = null)
Redis|bool|string|array function(string $operation, mixed ...$args)
Redis|int|false geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options)
Redis|float|false geodist(string $key, string $src, string $dst, string|null $unit = null)
Redis|array|false geohash(string $key, string $member, string ...$other_members)
Redis|array|false geopos(string $key, string $member, string ...$other_members)
mixed georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
mixed georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
mixed georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = [])
mixed georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = [])
array geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = [])
Redis|array|int|false geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = [])
mixed get(string $key)
Redis|array|false getWithMeta(string $key)
mixed getAuth()
Redis|int|false getBit(string $key, int $idx)
Redis|string|bool getEx(string $key, array $options = [])
int getDBNum()
Redis|string|bool getDel(string $key)
string getHost()
string|null getLastError()
int getMode()
mixed getOption(int $option)
string|null getPersistentID()
int getPort()
string|false serverName()
string|false serverVersion()
Redis|string|false getRange(string $key, int $start, int $end)
Redis|string|array|int|false lcs(string $key1, string $key2, array|null $options = null)
float getReadTimeout()
Redis|string|false getset(string $key, mixed $value)
float|false getTimeout()
array getTransferredBytes()
void clearTransferredBytes()
Redis|int|false hDel(string $key, string $field, string ...$other_fields)
Redis|bool hExists(string $key, string $field)
mixed hGet(string $key, string $member)
Redis|array|false hGetAll(string $key)
mixed hGetWithMeta(string $key, string $member)
Redis|int|false hIncrBy(string $key, string $field, int $value)
Redis|float|false hIncrByFloat(string $key, string $field, float $value)
Redis|array|false hKeys(string $key)
Redis|int|false hLen(string $key)
Redis|array|false hMget(string $key, array $fields)
Redis|array|false hgetex(string $key, array $fields, string|array|null $expiry = null)
Redis|int|false hsetex(string $key, array $fields, array|null $expiry = null)
Redis|array|false hgetdel(string $key, array $fields)
Redis|bool hMset(string $key, array $fieldvals)
Redis|string|array|false hRandField(string $key, array|null $options = null)
Redis|int|false hSet(string $key, mixed ...$fields_and_vals)
Redis|bool hSetNx(string $key, string $field, mixed $value)
Redis|int|false hStrLen(string $key, string $field)
Redis|array|false hVals(string $key)
Redis|array|false hexpire(string $key, int $ttl, array $fields, string|null $mode = NULL)
Redis|array|false hpexpire(string $key, int $ttl, array $fields, string|null $mode = NULL)
Redis|array|false hexpireat(string $key, int $time, array $fields, string|null $mode = NULL)
Redis|array|false hpexpireat(string $key, int $mstime, array $fields, string|null $mode = NULL)
Redis|array|false httl(string $key, array $fields)
Redis|array|false hpttl(string $key, array $fields)
Redis|array|false hexpiretime(string $key, array $fields)
Redis|array|false hpexpiretime(string $key, array $fields)
Redis|array|false hpersist(string $key, array $fields)
Redis|array|bool hscan(string $key, null|int|string $iterator, string|null $pattern = null, int $count = 0)
Redis|int|false expiremember(string $key, string $field, int $ttl, string|null $unit = null)
Redis|int|false expirememberat(string $key, string $field, int $timestamp)
Redis|int|false incr(string $key, int $by = 1)