#设置了过期时间的键,选取最近最少使用的键抛弃(Least Recently Used) # volatile-lru -> Evict using approximated LRU, only keys with an expire set. #对于所有的键,选取最近最少使用的键抛弃(Least Recently Used) # allkeys-lru -> Evict any key using approximated LRU. #设置了过期时间的键,选取最少频率使用的键抛弃(Least Frequently Used) # volatile-lfu -> Evict using approximated LFU, only keys with an expire set. #对于所有的键,选取最少频率使用的键抛弃(Least Frequently Used) # allkeys-lfu -> Evict any key using approximated LFU. #对于设置过期时间的键,随机选取键抛弃 # volatile-random -> Remove a random key having 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 evict anything, just return an error on write operations.