Redis中maxmemory_策略的可能值是什么?

Redis中maxmemory_策略的可能值是什么?,memory,redis,Memory,Redis,在Redis页面的示例中,有一个maxmemory\u策略设置: maxmemory_policy:noeviction 这方面似乎没有任何文档。可能的值是什么,默认值是什么?文件中详细介绍了不同的逐出策略: 文件中详细介绍了不同的逐出策略: 没有文档,真的吗?你是怎么搜索的?没有文档,真的吗?你怎么找的? # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory # is reached. You can

在Redis页面的示例中,有一个
maxmemory\u策略
设置:

maxmemory_policy:noeviction

这方面似乎没有任何文档。可能的值是什么,默认值是什么?

文件中详细介绍了不同的逐出策略:


文件中详细介绍了不同的逐出策略:


没有文档,真的吗?你是怎么搜索的?没有文档,真的吗?你怎么找的?
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached. You can select among five behaviors:
#
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key according to the LRU algorithm
# volatile-random -> remove a random key with an expire set
# allkeys-random -> remove a random key, any key
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations
#
# Note: with any of the above policies, Redis will return an error on write
#       operations, when there are no suitable keys for eviction.
#
#       At the date of writing these commands are: set setnx setex append
#       incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd
#       sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby
#       zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby
#       getset mset msetnx exec sort
#
# The default is:
#
# maxmemory-policy noeviction