Method |
Description |
|
Append ( $key, $value ) |
|
|
Auth ( $password ) |
|
|
BITCOUNT ( string $key, integer $start, integer $end ) : integer |
Count the number of set bits (population counting) in a string. |
|
BITOP ( string $operation, string $destkey, string $key ) : integer |
Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key. |
|
BLPop ( $key, $timeout ) |
|
|
BRPop ( $key, $timeout ) |
|
|
BRPopLPush ( $source, $destination, $timeout ) |
|
|
CLIENT_GETNAME ( ) |
Get the current connection name |
|
CLIENT_KILL ( $ip, $port ) : boolean |
The CLIENT KILL command closes a given client connection identified by ip:port. |
|
CLIENT_LIST ( ) |
Get the list of client connections |
|
CLIENT_SETNAME ( string $connection_name ) : boolean |
Set the current connection name |
|
Config_Get ( $parameter ) |
|
|
Config_ResetStat ( ) |
|
|
Config_Set ( $parameter, $value ) |
|
|
DBsize ( ) |
|
|
DEBUG_OBJECT ( string $key ) : mixed |
Get debugging information about a key |
|
DEBUG_SEGFAULT ( ) |
Make the server crash |
|
DUMP ( string $key ) : string |
Serialize the value stored at key in a Redis-specific format and return it to the user. |
|
Decr ( $key ) |
|
|
DecrBy ( $key, $decrement ) |
|
|
Del ( $key ) |
|
|
Discard ( ) |
|
|
ECHO_ ( string $message ) : string |
Echo the given string |
|
EVALSHA ( $sha1, array $keys, array $args ) : mixed |
Execute a Lua script server side |
|
EVAL_ ( string $script, array $keys, array $args ) : mixed |
Execute a Lua script server side |
|
Exec ( ) |
|
|
Exists ( $key ) |
|
|
Expire ( $key, $seconds ) |
|
|
Expireat ( $key, $timestamp ) |
|
|
FlushAll ( ) |
|
|
FlushDB ( ) |
|
|
Get ( $key ) |
|
|
GetBit ( $key, $offset ) |
|
|
GetRange ( $key, $start, $end ) |
|
|
GetSet ( $key, $value ) |
|
|
HINCRBYFLOAT ( string $key, string $field, float $increment ) : float |
Increment the specified field of an hash stored at key, and representing a floating point number, by the specified increment. |
|
INCRBYFLOAT ( string $key, float $increment ) : float |
Increment the string representing a floating point number stored at key by the specified increment. |
|
Incr ( $key ) |
|
|
IncrBy ( $key, $increment ) |
|
|
Info ( ) |
|
|
Keys ( $pattern ) |
|
|
LASTSAVE ( ) |
Get the UNIX time stamp of the last successful save to disk Ping the server |
|
LIndex ( $key, $index ) |
|
|
LInsert ( $key, $after = true, $pivot, $value ) |
|
|
LLen ( $key ) |
|
|
LPop ( $key ) |
|
|
LPush ( $key, $value ) |
|
|
LPushX ( $key, $value ) |
|
|
LRange ( $key, $start, $stop ) |
|
|
LRem ( $key, $count, $value ) |
|
|
LSet ( $key, $index, $value ) |
|
|
LTrim ( $key, $start, $stop ) |
|
|
MGet ( $key ) |
|
|
MIGRATE ( string $host, string $port, string $key, integer $destination_db, integer $timeout ) : boolean |
Atomically transfer a key from a Redis instance to another one. |
|
MONITOR ( ) |
Listen for all requests received by the server in real time |
|
MSet ( array $keys ) |
|
|
MSetNX ( array $keys ) |
|
|
Move ( $key, $db ) |
|
|
Multi ( ) |
|
|
OBJECT ( string $subcommand, array $arguments = [] ) : mixed |
Inspect the internals of Redis objects |
|
PEXPIRE ( string $key, integer $milliseconds ) : integer |
Set a key's time to live in milliseconds |
|
PEXPIREAT ( string $key, integer $milliseconds_timestamp ) : integer |
Set the expiration for a key as a UNIX timestamp specified in milliseconds |
|
PING ( ) |
Ping the server |
|
PSETEX ( string $key, integer $milliseconds, string $value ) : boolean |
Set the value and expiration in milliseconds of a key |
|
PSubscribe ( $pattern ) |
|
|
PTTL ( string $key ) : integer |
Get the time to live for a key in milliseconds |
|
PUnsubscribe ( $pattern = null ) |
|
|
Persist ( $key ) |
|
|
Publish ( $channel, $message ) |
|
|
Quit ( ) |
|
|
RANDOMKEY ( ) |
Return a random key from the keyspace |
|
RESTORE ( string $key, integer $ttl, string $serialized_value ) : boolean |
Create a key using the provided serialized value, previously obtained using DUMP. |
|
RPop ( $key ) |
|
|
RPopLPush ( $source, $destination ) |
|
|
RPush ( $key, $value ) |
|
|
RPushX ( $key, $value ) |
|
|
Rename ( $key, $newkey ) |
|
|
RenameNX ( $key, $newkey ) |
|
|
SAVE ( ) |
Synchronously save the dataset to disk |
|
SCRIPT_EXISTS ( string $script ) : array |
Check existence of scripts in the script cache. |
|
SCRIPT_FLUSH ( ) |
Remove all the scripts from the script cache. |
|
SCRIPT_KILL ( ) |
Kills the currently executing Lua script, assuming no write operation was yet performed by the script. |
|
SCRIPT_LOAD ( string $script ) : string |
Load a script into the scripts cache, without executing it. |
|
SHUTDOWN ( boolean $save = false, boolean $nosave = false ) : boolean |
Synchronously save the dataset to disk and then shut down the server
One of modifiers can be turned on: |
|
SLOWLOG ( string $subcommand, string $argument = '' ) : mixed |
Manages the Redis slow queries log |
|
SPOP ( string $key ) : string |
Remove and return a random member from a set |
|
SRANDMEMBER ( string $key, integer $count = 1 ) : string |
Get a random member from a set |
|
SYNC ( ) |
Internal command used for replication |
|
Select ( $index ) |
|
|
Set ( $key, $value ) |
|
|
SetBit ( $key, $offset, $value ) |
|
|
SetEx ( $key, $seconds, $value ) |
|
|
SetNX ( $key, $value ) |
|
|
SetRange ( $key, $offset, $value ) |
|
|
SlaveOf ( $host, $port ) |
|
|
Sort ( $key, $sort_rule ) |
|
|
StrLen ( $key ) |
|
|
Subscribe ( $channel ) |
|
|
TIME ( ) : array |
Returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second |
|
TTL ( $key ) |
|
|
Type ( $key ) |
|
|
Unsubscribe ( $channel = '' ) |
|
|
Unwatch ( ) |
|
|
Watch ( $key ) |
|
|
__call ( $name, $args ) |
* If some command is not wrapped. |
|
__construct ( $host = 'localhost', $port = '6379' ) |
|
|
__destruct ( ) |
Close connection |
|
bgRewriteAOF ( ) |
|
|
bgSave ( ) |
|
|
connect ( $host, $port ) |
|
|
hDel ( $key, $field ) |
|
|
hExists ( $key, $field ) |
|
|
hGet ( $key, $field ) |
|
|
hGetAll ( $key ) |
|
|
hIncrBy ( $key, $field, $increment ) |
|
|
hKeys ( $key ) |
|
|
hLen ( $key ) |
|
|
hMGet ( $key, array $fields ) |
|
|
hMSet ( $key, $fields ) |
|
|
hSet ( $key, $field, $value ) |
|
|
hSetNX ( $key, $field, $value ) |
|
|
hVals ( $key ) |
|
|
sAdd ( $key, $member ) |
|
|
sCard ( $key ) |
|
|
sDiff ( $key ) |
|
|
sDiffStore ( $destination, $key ) |
|
|
sInter ( $key ) |
|
|
sInterStore ( $destination, $key ) |
|
|
sIsMember ( $key, $member ) |
|
|
sMembers ( $key ) |
|
|
sMove ( $source, $destination, $member ) |
|
|
sRem ( $key, $member ) |
|
|
sUnion ( $key ) |
|
|
sUnionStore ( $destination, $key ) |
|
|
send_command ( ) : array | boolean | integer | null | string |
Execute send_command and return the result
Each entity of the send_command should be passed as argument
Example:
send_command('set','key','example value');
or:
send_command('multi');
send_command('config','ResetStat'); // if command contain 2 words, they should be separated
send_command('set','a', serialize($arr));
send_command('set','b', 1);
send_command('execute'); |
|
zAdd ( $key, $score, $member = NULL ) |
|
|
zCard ( $key ) |
|
|
zCount ( $key, $min, $max ) |
|
|
zIncrBy ( $key, $increment, $member ) |
|
|
zInterStore ( $destination, array $keys, array $weights = null, $aggregate = null ) |
|
|
zRange ( $key, $start, $stop, $withscores = false ) |
|
|
zRangeByScore ( $key, $min, $max, $withscores = false, array $limit = null ) |
|
|
zRank ( $key, $member ) |
|
|
zRem ( $key, $member ) |
|
|
zRemRangeByRank ( $key, $start, $stop ) |
|
|
zRemRangeByScore ( $key, $min, $max ) |
|
|
zRevRange ( $key, $start, $stop, $withscores = false ) |
|
|
zRevRangeByScore ( $key, $max, $min, $withscores = false, array $limit = null ) |
|
|
zRevRank ( $key, $member ) |
|
|
zScore ( $key, $member ) |
|
|
zUnionStore ( $destination, array $keys, array $weights = null, $aggregate = null ) |
|
|