http://zsetv.vom看不了啦com

CONFIG SET – Redis
CONFIG SET
Available since 2.0.0.
command is used in order to reconfigure the server at run time
without the need to restart Redis.
You can change both trivial parameters or switch from one to another persistence
option using this command.
The list of configuration parameters supported by
can be obtained
issuing a CONFIG GET * command, that is the symmetrical command used to obtain
information about the configuration of a running Redis instance.
All the configuration parameters set using
are immediately loaded
by Redis and will take effect starting with the next command executed.
All the supported parameters have the same meaning of the equivalent
configuration parameter used in the
file, with the
following important differences:
In options where bytes or other quantities are specified, it is not
possible to use the redis.conf abbreviated form (10k, 2gb ... and so forth),
everything should be specified as a well-formed 64-bit integer, in the base
unit of the configuration directive. However since Redis version 3.0 or
greater, it is possible to use
with memory units for
maxmemory, client output buffers, and replication backlog size.
The save parameter is a single string of space-separated integers.
Every pair of integers represent a seconds/modifications threshold.
For instance what in redis.conf looks like:
save 900 1
save 300 10

that means, save after 900 seconds if there is at least 1 change to the dataset,
and after 300 seconds if there are at least 10 changes to the dataset, should
be set using CONFIG SET SAVE &900 1 300 10&.
It is possible to switch persistence from RDB snapshotting to append-only file
(and the other way around) using the
For more information about how to do that please check the .
In general what you should know is that setting the appendonly parameter to
yes will start a background process to save the initial append-only file
(obtained from the in memory data set), and will append all the subsequent
commands on the append-only file, thus obtaining exactly the same effect of a
Redis server that started with AOF turned on since the start.
You can have both the AOF enabled with RDB snapshotting if you want, the two
options are not mutually exclusive.
Return value
: OK when the configuration was set properly.
Otherwise an error is returned.HDEL – Redis
field [field ...]
Available since 2.0.0.
Time complexity: O(N) where N is the number of fields to be removed.
Removes the specified fields from the hash stored at key.
Specified fields that do not exist within this hash are ignored.
If key does not exist, it is treated as an empty hash and this command returns
Return value
: the number of fields that were removed from the hash, not
including specified but non existing fields.
&= 2.4: Accepts multiple field arguments.
Redis versions older than 2.4 can only remove a field per call.
To remove multiple fields from a hash in an atomic fashion in earlier
versions, use a
HSET myhash field1 &foo&
(integer) 1
HDEL myhash field1
(integer) 1
HDEL myhash field2
(integer) 0一般不超过80个字符
网站关键词
一般不超过100个字符
一般不超过200个字符
关键词排名分析
数据载入中,请稍候。
数据载入中,请稍候。
最近查询:
其他功能:
& 爱站网 版权所有
About Aizhan一般不超过80个字符
网站关键词
一般不超过100个字符
一般不超过200个字符
关键词排名分析
数据载入中,请稍候。
数据载入中,请稍候。
最近查询:
其他功能:
& 爱站网 版权所有
About Aizhan

我要回帖

更多关于 手机看岛国用什么软件 的文章

 

随机推荐