跳转到主要内容
目录226
-
第 1 章
Commands
226 页
-
1.1
acl-cat
The command shows the available ACL categories if called without arguments.
If a category name is given, th...
20 小时前
-
1.2
acl-delrole
Delete all the specified ACL roles.
A role cannot be deleted while it is assigned to a user: if any of the ...
20 小时前
-
1.3
acl-deluser
Delete all the specified ACL users and terminate all the connections that are
authenticated with such users...
20 小时前
-
1.4
acl-digest
Return a fingerprint of the ACL rules currently in effect, as a hexadecimal string.
The digest depends only...
20 小时前
-
1.5
acl-dryrun
Simulate the execution of a given command by a given user.
This command can be used to test the permissions...
20 小时前
-
1.6
acl-genpass
ACL users need a solid password in order to authenticate to the server without
security risks. Such passwor...
20 小时前
-
1.7
acl-getrole
The command returns all the rules defined for an existing ACL role, and the users that hold it.
The command...
20 小时前
-
1.8
acl-getuser
The command returns all the rules defined for an existing ACL user.
Specifically, it lists the user's ACL f...
20 小时前
-
1.9
acl-help
The
ACL HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.10
acl-list
The command shows the currently active ACL rules in the Valkey server. Each
line in the returned array defi...
20 小时前
-
1.11
acl-load
When Valkey is configured to use an ACL file (with the
aclfile configuration
option), this command will re...
20 小时前
-
1.12
acl-log
The command shows a list of recent ACL security events:
Failures to authenticate their connections with
AU...
20 小时前
-
1.13
acl-roles
The command shows a list of all the names of the currently configured roles in the Valkey ACL system.
Examp...
20 小时前
-
1.14
acl-save
When Valkey is configured to use an ACL file (with the
aclfile configuration
option), this command will sa...
20 小时前
-
1.15
acl-setrole
Create an ACL role with the specified rules or modify the rules of an existing role.
A role is a named, reu...
20 小时前
-
1.16
acl-setuser
Create an ACL user with the specified rules or modify the rules of an
existing user.
Manipulate Valkey ACL ...
20 小时前
-
1.17
acl-users
The command shows a list of all the usernames of the currently configured
users in the Valkey ACL system. R...
20 小时前
-
1.18
acl-whoami
Return the username the current connection is authenticated with.
New connections are authenticated with th...
20 小时前
-
1.19
acl
This is a container command for Access Control List commands.
To see the list of available commands you can...
20 小时前
-
1.20
append
If
key already exists and is a string, this command appends the
value at the
end of the string.
If
key d...
20 小时前
-
1.21
asking
When a cluster client receives an
-ASK redirect, the
ASKING command is sent to the target node followed b...
20 小时前
-
1.22
auth
The AUTH command authenticates the current connection using the Valkey ACL system.
The standard way to
AUT...
20 小时前
-
1.23
bf.add
Adds a single item to a bloom filter. If the specified bloom filter does not exist, a bloom filter is creat...
20 小时前
-
1.24
bf.card
Returns the cardinality of a bloom filter which is the number of items that have been successfully added to...
20 小时前
-
1.25
bf.exists
Determines if an item has been added to the bloom filter previously.
A bloom filter has two possible respon...
20 小时前
-
1.26
bf.info
Returns usage information and properties of a specific bloom filter.
Info Fields
CAPACITY - The number of u...
20 小时前
-
1.27
bf.insert
If the bloom filter does not exist under the specified name, a bloom filter is created with the specified p...
20 小时前
-
1.28
bf.load
Restores a bloom filter from a dump of an existing bloom filter with all of its specific the properties and...
20 小时前
-
1.29
bf.madd
Adds one or more items to a bloom filter. If the specified bloom filter does not exist, a bloom filter is c...
20 小时前
-
1.30
bf.mexists
Determines if the provided item/s have been added to a bloom filter previously.
A Bloom filter has two poss...
20 小时前
-
1.31
bf.reserve
Creates an empty bloom filter with the specified capacity and false positive rate. By default, a scaling fi...
20 小时前
-
1.32
bgrewriteaof
Instruct Valkey to start an Append Only File rewrite process.
The rewrite will create a small optimized ver...
20 小时前
-
1.33
bgsave
Save the DB in background.
Normally the OK code is immediately returned.
Valkey forks, the parent continues...
20 小时前
-
1.34
bitcount
Count the number of set bits (population counting) in a string.
By default all the bytes contained in the s...
20 小时前
-
1.35
bitfield
The command treats a string as an array of bits, and is capable of addressing specific integer fields of va...
20 小时前
-
1.36
bitfield_ro
Read-only variant of the
BITFIELD command.
It is similar to the original
BITFIELD but only accepts
GET s...
20 小时前
-
1.37
bitop
Perform a bitwise operation between multiple keys (containing string values) and
store the result in the de...
20 小时前
-
1.38
bitpos
Return the position of the first bit set to 1 or 0 in a string.
The position is returned, thinking of the s...
20 小时前
-
1.39
blmove
BLMOVE is the blocking variant of
LMOVE.
When
source contains elements, this command behaves exactly like...
20 小时前
-
1.40
blmpop
BLMPOP is the blocking variant of
LMPOP.
When any of the lists contains elements, this command behaves exa...
20 小时前
-
1.41
blpop
BLPOP is a blocking list pop primitive.
It is the blocking version of
LPOP because it blocks the connectio...
20 小时前
-
1.42
brpop
BRPOP is a blocking list pop primitive.
It is the blocking version of
RPOP because it blocks the connectio...
20 小时前
-
1.43
brpoplpush
BRPOPLPUSH is the blocking variant of
RPOPLPUSH.
When
source contains elements, this command behaves exac...
20 小时前
-
1.44
bzmpop
BZMPOP is the blocking variant of
ZMPOP.
When any of the sorted sets contains elements, this command behav...
20 小时前
-
1.45
bzpopmax
BZPOPMAX is the blocking variant of the sorted set
ZPOPMAX primitive.
It is the blocking version because i...
20 小时前
-
1.46
bzpopmin
BZPOPMIN is the blocking variant of the sorted set
ZPOPMIN primitive.
It is the blocking version because i...
20 小时前
-
1.47
client-caching
This command controls the tracking of the keys in the next command executed
by the connection, when trackin...
20 小时前
-
1.48
client-capa
Clients can declare their capabilities to Valkey using the
CLIENT CAPA command, and Valkey
will adjust the...
20 小时前
-
1.49
client-getname
The
CLIENT GETNAME returns the name of the current connection as set by
CLIENT SETNAME. Since every new c...
20 小时前
-
1.50
client-getredir
This command returns the client ID we are redirecting our
tracking notifications to. We set a client
to red...
20 小时前
-
1.51
client-help
The
CLIENT HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.52
client-id
The command just returns the ID of the current connection. Every connection
ID has certain guarantees:
It i...
20 小时前
-
1.53
client-import-source
When the client sync data from a Redis-like server to Valkey using some sync tools like RedisShake, Valkey ...
20 小时前
-
1.54
client-info
The command returns information and statistics about the current client connection in a mostly human readab...
20 小时前
-
1.55
client-kill
The
CLIENT KILL command closes a given client connection. This command support two formats, the old format...
20 小时前
-
1.56
client-list
The
CLIENT LIST command returns information and statistics about the client
connections server in a mostly...
20 小时前
-
1.57
client-no-evict
The
CLIENT NO-EVICT command sets the client eviction mode for the current connection.
When turned on and c...
20 小时前
-
1.58
client-no-touch
The
CLIENT NO-TOUCH command controls whether commands sent by the client will alter the LRU/LFU of the key...
20 小时前
-
1.59
client-pause
CLIENT PAUSE is a connections control command able to suspend all the Valkey clients for the specified amou...
20 小时前
-
1.60
client-reply
Sometimes it can be useful for clients to completely disable replies from the Valkey server. For example wh...
20 小时前
-
1.61
client-setinfo
The
CLIENT SETINFO command assigns various info attributes to the current connection which are displayed i...
20 小时前
-
1.62
client-setname
The
CLIENT SETNAME command assigns a name to the current connection.
The assigned name is displayed in the...
20 小时前
-
1.63
client-tracking
This command enables the tracking feature of the Valkey server, that is used
for server assisted client sid...
20 小时前
-
1.64
client-trackinginfo
The command returns information about the current client connection's use of the server assisted client sid...
20 小时前
-
1.65
client-unblock
This command can unblock, from a different connection, a client blocked in a blocking operation, such as fo...
20 小时前
-
1.66
client-unpause
CLIENT UNPAUSE is used to resume command processing for all clients that were paused by
CLIENT PAUSE.
20 小时前
-
1.67
client
This is a container command for client connection commands.
To see the list of available commands you can c...
20 小时前
-
1.68
cluster-addslots
This command is useful in order to modify a node's view of the cluster
configuration. Specifically it assig...
20 小时前
-
1.69
cluster-addslotsrange
The
CLUSTER ADDSLOTSRANGE is similar to the
CLUSTER ADDSLOTS command in that they both assign hash slots ...
20 小时前
-
1.70
cluster-bumpepoch
Advances the cluster config epoch.
The
CLUSTER BUMPEPOCH command triggers an increment to the cluster's co...
20 小时前
-
1.71
cluster-cancelslotmigrations
CLUSTER CANCELSLOTMIGRATIONS cancels all in progress
atomic slot migrations initiated through
CLUSTER MIGRA...
20 小时前
-
1.72
cluster-count-failure-reports
The command returns the number of failure reports for the specified node.
Failure reports are the way Valke...
20 小时前
-
1.73
cluster-countkeysinslot
Returns the number of keys in the specified Valkey Cluster hash slot in the
currently selected database. Th...
20 小时前
-
1.74
cluster-delslots
In Valkey Cluster, each node keeps track of which primary is serving
a particular hash slot.
The
CLUSTER D...
20 小时前
-
1.75
cluster-delslotsrange
The
CLUSTER DELSLOTSRANGE command is similar to the
CLUSTER DELSLOTS command in that they both remove has...
20 小时前
-
1.76
cluster-failover
This command, that can only be sent to a Valkey Cluster replica node, forces
the replica to start a manual ...
20 小时前
-
1.77
cluster-flushslots
Deletes all slots from a node.
The
CLUSTER FLUSHSLOTS deletes all information about slots from the connect...
20 小时前
-
1.78
cluster-forget
The command is used in order to remove a node, specified via its node ID,
from the set of known nodes of th...
20 小时前
-
1.79
cluster-getkeysinslot
The command returns an array of key names stored in the contacted node and
hashing to the specified hash sl...
20 小时前
-
1.80
cluster-getslotmigrations
CLUSTER GETSLOTMIGRATIONS returns an array of information about in-progress
and recently completed
atomic s...
20 小时前
-
1.81
cluster-help
The
CLUSTER HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.82
cluster-info
CLUSTER INFO provides
INFO style information about Valkey Cluster vital parameters.
The following fields a...
20 小时前
-
1.83
cluster-keyslot
Returns an integer identifying the hash slot the specified key hashes to.
This command is mainly useful for...
20 小时前
-
1.84
cluster-links
Each node in a Valkey Cluster maintains a pair of long-lived TCP link with each peer in the cluster: One fo...
20 小时前
-
1.85
cluster-meet
CLUSTER MEET is used in order to connect different Valkey nodes with cluster
support enabled, into a workin...
20 小时前
-
1.86
cluster-migrateslots
CLUSTER MIGRATESLOTS initiates an asynchronous migration of the designated
slot range(s) to the specified t...
20 小时前
-
1.87
cluster-myid
Returns the node's id.
The
CLUSTER MYID command returns the unique, auto-generated identifier that is asso...
20 小时前
-
1.88
cluster-myshardid
Returns the node's shard id.
The
CLUSTER MYSHARDID command returns the unique, auto-generated identifier t...
20 小时前
-
1.89
cluster-nodes
Each node in a Valkey Cluster has its view of the current cluster configuration,
given by the set of known ...
20 小时前
-
1.90
cluster-replicas
The command provides a list of replica nodes replicating from the specified
primary node. The list is provi...
20 小时前
-
1.91
cluster-replicate
The command reconfigures a node as a replica of the specified primary.
If the node receiving the command is...
20 小时前
-
1.92
cluster-reset
Reset a Valkey Cluster node, in a more or less drastic way depending on the
reset type, that can be hard or...
20 小时前
-
1.93
cluster-saveconfig
Forces a node to save the
nodes.conf configuration on disk. Before returning,
the command calls
fsync(2) ...
20 小时前
-
1.94
cluster-set-config-epoch
This command sets a specific config epoch in a fresh node. It only works when:
The nodes table of the node ...
20 小时前
-
1.95
cluster-setslot
CLUSTER SETSLOT is responsible for changing the state of a hash slot in the receiving node in different way...
20 小时前
-
1.96
cluster-shards
CLUSTER SHARDS returns details about the shards of the cluster.
A shard is defined as a collection of nodes...
20 小时前
-
1.97
cluster-slaves
A note about the word slave used in this man page and command name: the Valkey project no longer uses the w...
20 小时前
-
1.98
cluster-slot-stats
Returns an array of slot usage statistics for slots assigned to the current shard.
The command is suitable ...
20 小时前
-
1.99
cluster-slots
CLUSTER SLOTS returns details about which cluster slots map to which Valkey instances.
The command is suita...
20 小时前
-
1.100
cluster-syncslots
Internal command to allow navigation of the atomic slot migration state machine.
For more information about...
20 小时前
-
1.101
cluster
This is a container command for Valkey Cluster commands.
To see the list of available commands you can call...
20 小时前
-
1.102
clusterscan
CLUSTERSCAN iterates over keys across a Valkey Cluster.
It walks through every hash slot in the cluster, on...
20 小时前
-
1.103
command-count
Returns the total number of commands in this Valkey server.
Examples
127.0.0.1:6379> COMMAND COUNT
(integer...
20 小时前
-
1.104
command-docs
Return documentary information about commands.
By default, the reply includes all of the server's commands....
20 小时前
-
1.105
command-getkeys
Returns @array-reply of keys from a full Valkey command.
COMMAND GETKEYS is a helper command to let you fin...
20 小时前
-
1.106
command-getkeysandflags
Returns @array-reply of keys from a full Valkey command and their usage flags.
COMMAND GETKEYSANDFLAGS is a...
20 小时前
-
1.107
command-help
The
COMMAND HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.108
command-info
Returns @array-reply of details about multiple Valkey commands.
Same result format as
COMMAND except you c...
20 小时前
-
1.109
command-list
Return an array of the server's command names.
You can use the optional FILTERBY modifier to apply one of t...
20 小时前
-
1.110
command
Return an array with details about every Valkey command.
The
COMMAND command is introspective.
Its reply d...
20 小时前
-
1.111
commandlog-get
The
COMMANDLOG GET command returns entries from the command log of specified type in chronological order.
...
20 小时前
-
1.112
commandlog-help
The
COMMANDLOG HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.113
commandlog-len
The
COMMANDLOG LEN command returns the current number of entries in the specified type of command log.
A n...
20 小时前
-
1.114
commandlog-reset
This command resets the specified type of command log, clearing all entries in it.
Once deleted the informa...
20 小时前
-
1.115
commandlog
This is a container command for command log management commands.
To see the list of available commands you ...
20 小时前
-
1.116
config-get
The
CONFIG GET command is used to read the configuration parameters of a
running Valkey server.
The symmet...
20 小时前
-
1.117
config-help
The
CONFIG HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.118
config-resetstat
Resets the statistics reported by Valkey using the
INFO and
LATENCY HISTOGRAM commands.
The following is ...
20 小时前
-
1.119
config-rewrite
The
CONFIG REWRITE command rewrites the
valkey.conf file the server was started with, applying the minima...
20 小时前
-
1.120
config-set
The
CONFIG SET command is used in order to reconfigure the server at run time
without the need to restart ...
20 小时前
-
1.121
config
This is a container command for runtime configuration commands.
To see the list of available commands you c...
20 小时前
-
1.122
copy
This command copies the value stored at the
source key to the
destination
key.
By default, the
destinati...
20 小时前
-
1.123
dbsize
Return the number of keys in the currently-selected database.
20 小时前
-
1.124
debug
The
DEBUG command is an internal command.
It is meant to be used for developing and testing Valkey.
20 小时前
-
1.125
decr
Decrements the number stored at
key by one.
If the key does not exist, it is set to
0 before performing t...
20 小时前
-
1.126
decrby
Decrements the number stored at
key by
decrement.
If the key does not exist, it is set to
0 before perfo...
20 小时前
-
1.127
del
Removes the specified keys.
A key is ignored if it does not exist.
Examples
127.0.0.1:6379> SET key1 "Hello...
20 小时前
-
1.128
delex
Delete
key based on condition.
Options
IFEQ comparison-value -- Delete the key only if the comparison valu...
20 小时前
-
1.129
delifeq
Deletes the key if its value matches the given string.
This command is typically used to safely release loc...
20 小时前
-
1.130
discard
Flushes all previously queued commands in a transaction and restores the
connection state to normal.
If
WA...
20 小时前
-
1.131
dump
Serialize the value stored at key in a Valkey-specific format and return it to
the user.
The returned value...
20 小时前
-
1.132
echo
Returns
message.
Examples
127.0.0.1:6379> ECHO "Hello World!"
"Hello World!"
20 小时前
-
1.133
eval
Invoke the execution of a server-side Lua script.
The first argument is the script's source code.
Scripts a...
20 小时前
-
1.134
eval_ro
This is a read-only variant of the
EVAL command that cannot execute commands that modify data.
For more in...
20 小时前
-
1.135
evalsha
Evaluate a script from the server's cache by its SHA1 digest.
The server caches scripts by using the
SCRIP...
20 小时前
-
1.136
evalsha_ro
This is a read-only variant of the
EVALSHA command that cannot execute commands that modify data.
For more...
20 小时前
-
1.137
exec
Executes all previously queued commands in a transaction and restores the
connection state to normal.
When ...
20 小时前
-
1.138
exists
Returns if
key exists.
The user should be aware that if the same existing key is mentioned in the argument...
20 小时前
-
1.139
expire
Set a timeout on
key.
After the timeout has expired, the key will automatically be deleted.
A key with an ...
20 小时前
-
1.140
expireat
EXPIREAT has the same effect and semantic as
EXPIRE, but instead of
specifying the number of seconds repre...
20 小时前
-
1.141
expiretime
Returns the absolute Unix timestamp (since January 1, 1970) in seconds at which the given key will expire.
...
20 小时前
-
1.142
failover
This command will start a coordinated failover between the currently-connected-to primary and one of its re...
20 小时前
-
1.143
fcall
Invoke a function.
Functions are loaded to the server with the
FUNCTION LOAD command.
The first argument i...
20 小时前
-
1.144
fcall_ro
This is a read-only variant of the
FCALL command that cannot execute commands that modify data.
For more i...
20 小时前
-
1.145
flushall
Delete all the keys of all the existing databases, not just the currently selected one.
This command never ...
20 小时前
-
1.146
flushdb
Delete all the keys of the currently selected DB.
This command never fails.
By default,
FLUSHDB will synch...
20 小时前
-
1.147
ft._list
Lists the currently defined indexes for the current data base.
FT._LIST
Response
An array of strings. Each ...
20 小时前
-
1.148
ft.aggregate
The
FT.AGGREGATE command extends the query capabilities of the
FT.SEARCH command with substantial server-...
20 小时前
-
1.149
ft.create
The
FT.CREATE command creates an empty index and may initiate the backfill process. Each index consists of...
20 小时前
-
1.150
ft.cursor
Reads more rows from, or deletes, a cursor created by the
WITHCURSOR option of
FT.AGGREGATE,
FT.HYBRID o...
20 小时前
-
1.151
ft.dropindex
Drop the index created earlier by
FT.CREATE command. It is an error if the index doesn't exist.
FT.DROPIND...
20 小时前
-
1.152
ft.hybrid
The
FT.HYBRID command runs two searches over one index and combines their results into a single ranked lis...
20 小时前
-
1.153
ft.info
The
FT.INFO command provides information about an index. Variants of the command are available in cluster ...
20 小时前
-
1.154
ft.search
Performs a search of the specified index. The keys which match the query expression are returned.
FT.SEARCH...
20 小时前
-
1.155
function-delete
Delete a library and all its functions.
This command deletes the library called library-name and all functi...
20 小时前
-
1.156
function-dump
Return the serialized payload of loaded libraries.
You can restore the serialized payload later with the
F...
20 小时前
-
1.157
function-flush
Deletes all the libraries.
Unless called with the optional mode argument, the
lazyfree-lazy-user-flush con...
20 小时前
-
1.158
function-help
The
FUNCTION HELP command returns a helpful text describing the different subcommands.
20 小时前
-
1.159
function-kill
Kill a function that is currently executing.
The
FUNCTION KILL command can be used only on functions that ...
20 小时前
-
1.160
function-list
Return information about the functions and libraries.
You can use the optional
LIBRARYNAME argument to spe...
20 小时前
-
1.161
function-load
Load a library to Valkey.
The command receives a single mandatory parameter which is the source code that i...
20 小时前
-
1.162
function-restore
Restore libraries from the serialized payload.
You can use the optional policy argument to provide a policy...
20 小时前
-
1.163
function-stats
Return information about the function that's currently running and information about the available executio...
20 小时前
-
1.164
function
This is a container command for function commands.
To see the list of available commands you can call
FUNC...
20 小时前
-
1.165
geoadd
Adds the specified geospatial items (longitude, latitude, name) to the specified key. Data is stored into t...
20 小时前
-
1.166
geodist
Return the distance between two members in the geospatial index represented by the sorted set.
Given a sort...
20 小时前
-
1.167
geohash
Return valid Geohash strings representing the position of one or more elements in a sorted set value repres...
20 小时前
-
1.168
geopos
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented ...
20 小时前
-
1.169
georadius
Return the members of a sorted set populated with geospatial information using
GEOADD, which are within th...
20 小时前
-
1.170
georadius_ro
Read-only variant of the
GEORADIUS command.
This command is identical to the
GEORADIUS command, except th...
20 小时前
-
1.171
georadiusbymember
This command is exactly like
GEORADIUS with the sole difference that instead
of taking, as the center of t...
20 小时前
-
1.172
georadiusbymember_ro
Read-only variant of the
GEORADIUSBYMEMBER command.
This command is identical to the
GEORADIUSBYMEMBER co...
20 小时前
-
1.173
geosearch
Return the members of a sorted set populated with geospatial information using
GEOADD, which are within th...
20 小时前
-
1.174
geosearchstore
This command is like
GEOSEARCH, but stores the result in destination key.
This command replaces the now de...
20 小时前
-
1.175
get
Get the value of
key.
If the key does not exist the special value
nil is returned.
An error is returned i...
20 小时前
-
1.176
getbit
Returns the bit value at offset in the string value stored at key.
When offset is beyond the string length,...
20 小时前
-
1.177
getdel
Get the value of
key and delete the key.
This command is similar to
GET, except for the fact that it also...
20 小时前
-
1.178
getex
Get the value of
key and optionally set its expiration.
GETEX is similar to
GET, but is a write command w...
20 小时前
-
1.179
getrange
Returns the substring of the string value stored at
key, determined by the
offsets
start and
end (both a...
20 小时前
-
1.180
getset
Atomically sets
key to
value and returns the old value stored at
key.
Returns an error when
key exists ...
20 小时前
-
1.181
hdel
Removes the specified fields from the hash stored at
key.
Specified fields that do not exist within this h...
20 小时前
-
1.182
hello
Switch to a different protocol, optionally authenticating and setting the
connection's name, or provide a c...
20 小时前
-
1.183
hexists
Returns if
field is an existing field in the hash stored at
key.
Examples
127.0.0.1:6379> HSET myhash fie...
20 小时前
-
1.184
hexpire
The
HEXPIRE command allows manipulating the expiration time for existing hash fields.
When set, the expira...
20 小时前
-
1.185
hexpireat
HEXPIREAT has the same effect and semantic as
HEXPIRE, but instead of
specifying the number of seconds rep...
20 小时前
-
1.186
hexpiretime
The
HEXPIRETIME command returns the absolute Unix timestamp (since January 1, 1970) in seconds at which th...
20 小时前
-
1.187
hget
Returns the value associated with
field in the hash stored at
key.
Examples
127.0.0.1:6379> HSET myhash f...
20 小时前
-
1.188
hgetall
Returns all fields and values of the hash stored at
key.
In the returned value, every field name is follow...
20 小时前
-
1.189
hgetdel
The
HGETDEL command returns the values associated with the specified
fields in the hash stored at
key an...
20 小时前
-
1.190
hgetex
The
HGETEX command returns the value of one or more fields of a given hash key, and optionally manipulates...
20 小时前
-
1.191
hincrby
Increments the number stored at
field in the hash stored at
key by
increment.
If
key does not exist, a n...
20 小时前
-
1.192
hincrbyfloat
Increment the specified
field of a hash stored at
key, and representing a
floating point number, by the s...
20 小时前
-
1.193
hkeys
Returns all field names in the hash stored at
key.
Examples
127.0.0.1:6379> HSET myhash field1 "Hello"
(in...
20 小时前
-
1.194
hlen
Returns the number of fields contained in the hash stored at
key.
Examples
127.0.0.1:6379> HSET myhash fie...
20 小时前
-
1.195
hmget
Returns the values associated with the specified
fields in the hash stored at
key.
For every
field that d...
20 小时前
-
1.196
hmset
Sets the specified fields to their respective values in the hash stored at
key.
This command overwrites any...
20 小时前
-
1.197
hpersist
The
HPERSIST remove the existing expiration on a hash key's field(s), turning the field(s) from volatile (...
20 小时前
-
1.198
hpexpire
This command works exactly like
HEXPIRE but the time to live of the field(s) is
specified in milliseconds ...
20 小时前
-
1.199
hpexpireat
HEXPIREAT has the same effect and semantic as
HPEXPIRE, but instead of
specifying the number of millisecon...
20 小时前
-
1.200
hpexpiretime
The
HPEXPIRETIME command returns the absolute Unix timestamp (since January 1, 1970) in milliseconds at wh...
20 小时前
-
1.201
hpttl
Like
HTTL this command returns the remaining time to live of hash field(s) that has an associated expirati...
20 小时前
-
1.202
hrandfield
When called with just the
key argument, return a random field from the hash value stored at
key.
If the p...
20 小时前
-
1.203
hscan
See
SCAN for
HSCAN documentation.
20 小时前
-
1.204
hset
Sets the specified fields to their respective values in the hash stored at
key.
This command overwrites th...
20 小时前
-
1.205
hsetex
The
HSETEX command allows setting the value of one or more fields of a given hash key, and optionally mani...
20 小时前
-
1.206
hsetnx
Sets
field in the hash stored at
key to
value, only if
field does not
yet exist.
If
key does not exist...
20 小时前
-
1.207
hstrlen
Returns the string length of the value associated with
field in the hash stored at
key. If the
key or th...
20 小时前
-
1.208
httl
The
HTTL command returns the remaining time to live of hash field(s) with associated expiration time(s).
T...
20 小时前
-
1.209
hvals
Returns all values in the hash stored at
key.
Examples
127.0.0.1:6379> HSET myhash field1 "Hello"
(integer...
20 小时前
-
1.210
incr
Increments the number stored at
key by one.
If the key does not exist, it is set to
0 before performing t...
20 小时前
-
1.211
incrby
Increments the number stored at
key by
increment.
If the key does not exist, it is set to
0 before perfo...
20 小时前
-
1.212
incrbyfloat
Increment the string representing a floating point number stored at
key by the
specified
increment. By us...
20 小时前
-
1.213
info
The
INFO command returns information and statistics about the server in a
format that is simple to parse b...
20 小时前
-
1.214
json.arrappend
Append one or more values to the array values at the path.
Examples
Enhanced path syntax:
127.0.0.1:6379> J...
20 小时前
-
1.215
json.arrindex
Search for the first occurrence of a scalar JSON value in the arrays at the path.
Out of range errors are t...
20 小时前
-
1.216
json.arrinsert
Insert one or more values into the array values at path before the index.
Inserting at index 0 prepends to ...
20 小时前
-
1.217
json.arrlen
Get length of the array at the path.
Examples
Enhanced path syntax:
127.0.0.1:6379> JSON.SET k1 . '[[], [\"...
20 小时前
-
1.218
json.arrpop
Remove and return element at the index from the array. Popping an empty array returns null.
Examples
Enhanc...
20 小时前
-
1.219
json.arrtrim
Trim arrays at the path so that it becomes subarray [start, end], both inclusive.
If the array is empty, do...
20 小时前
-
1.220
json.clear
Clear the arrays or objects at the path.
Examples
127.0.0.1:6379> JSON.SET k1 . '[[], [0], [0,1], [0,1,2], ...
20 小时前
-
1.221
json.debug
Report information. Supported subcommands are:
MEMORY [path] - report memory usage in bytes of a JSON valu...
20 小时前
-
1.222
json.del
Delete the JSON values at the path in a document key. If the path is the root path, it is equivalent to del...
20 小时前
-
1.223
json.forget
An alias of
JSON.DEL
20 小时前
-
1.224
json.get
Get the serialized JSON at one or multiple paths.
Examples
Enhanced path syntax:
127.0.0.1:6379> JSON.SET k...
20 小时前
-
1.225
json.mget
Get serialized JSON objects from multiple document keys at the specified path. Return null for non-existent...
20 小时前
-
1.226
json.mset
Set JSON values for multiple keys. The operation is atomic. Either all values are set or none is set.
If th...
20 小时前