"" 无事件(默认) K 键空间事件,使用 __keyspace@<db>__ 前缀发布。 E 键空间事件,使用 __keyevent@<db>__ 前缀发布。 g 通用命令(非特定类型),例如 DEL、EXPIRE 或 RENAME $ 字符串命令 l 列表命令 s Set 命令 h 哈希命令 z 有序集命令 x 过期事件(每次键过期时生成的事件) e 逐出事件(因 maxmemory 而逐出键时生成的事件) A g$lshzxe 的别名,因此“AKE”字符串表示所有事件。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Supported instance configurations\n\nThis page describes maxmemory policies and other configurations available\nfor Memorystore for Valkey.\n\nFor instructions on how to modify the configurations listed on this page, see\n[Configure an instance](/memorystore/docs/valkey/configure-instances).\n\nMaxmemory policies\n------------------\n\nWhen your instance memory is full, and a new write comes in, Valkey evicts\nkeys to make room for the write based on your instance's maxmemory policy. The\ndefault maxmemory policy for Memorystore for Valkey is `volatile-lru`. You\ncan also use one of the following maxmemory policies:\n\n- `noeviction`: Returns an error when the instance reaches maxmemory. Does not overwrite or evict any data.\n- `allkeys-lfu`: Evicts the least frequently used (LFU) keys from the entire keyset.\n- `allkeys-lru`: Evicts the least recently used (LRU) keys from the entire keyset.\n- `volatile-lfu`: Evicts the least-frequently-used keys that are set with TTL (time to live) expirations.\n- `volatile-lru`: Evicts the least recently used (LRU) keys that are set with TTL expirations.\n- `allkeys-random`: Evicts random keys from the entire keyspace.\n- `volatile-random`: Evicts random keys from among those set with TTL expirations.\n- `volatile-ttl`: Evicts the keys with the shortest TTL from among those set with TTL expirations.\n\nModifiable configuration parameters\n-----------------------------------\n\nYou can modify the following parameters when creating or updating a\nMemorystore for Valkey instance."]]