This page describes the available options for Redis configurations that can be changed on Cloud Memorystore instances and the default values chosen for the ones that cannot.
When your Redis instance memory is full, and a new write comes in, Redis evicts
keys to make room for the write based on your instance's maxmemory policy. The
default maxmemory policy for Cloud Memorystore is
can also use one of the following maxmemory policies:
noeviction: Returns an error when the Redis instance reaches maxmemory. Does not overwrite or evict any data.
allkeys-lru: Evicts the least-recently-used keys from the entire keyset.
volatile-lru: Evicts the least-recently-used keys that are set with TTL (time to live) expirations.
allkeys-random: Evicts random keys from the entire keyspace.
volatile-random: Evicts random keys from among those set with TTL expirations.
volatile-ttl: Evicts the keys with the shortest TTL from among those set with TTL expirations.
Modifiable configuration parameters
You can modify the following parameters when creating or updating a Memorystore for Redis instance. For more information about how to change these configurations, see Configuring Redis Instances.
|Parameter||Description||Acceptable values||Require Restart on Update|
|maxmemory-policy||Specifies the behavior Redis follows when the memory size limit is reached. See the LRU cache page on the Redis site for more information.||
|notify-keyspace-events||Allows clients to subscribe to notifications on certain keyspace events. See the Redis Keyspace Notifications page on the Redis site for more information.||
Keyspace events, published with __keyspace@
Keyevent events, published with __keyevent@
Generic commands (non-type specific) like DEL, EXPIRE, or RENAME
Sorted set commands
Expired events (events generated every time a key expires)
Evicted events (events generated when a key is evicted for maxmemory)
Alias for g$lshzxe, so that the "AKE" string means all the events.
Unmodifiable configuration parameters
The following table lists the Redis configuration parameters that you cannot modify in Cloud Memorystore and their default values. See the Redis configuration documentation for detailed information about these configuration parameters.
Blocked Redis commands