Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Nov 19, 2024
1 parent 25276b4 commit 01867ec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@

maxmemory 0

# maxmemory-policy allkeys-lru
#
# This setting determines how Redis evicts keys when it reaches the memory limit.
# 'allkeys-lru' evicts the least recently used keys from all keys stored in Redis,
# `allkeys-lru` evicts the least recently used keys from all keys stored in Redis,
# allowing frequently accessed data to remain in memory while older data is removed.
#
# Example:
# maxmemory-policy allkeys-lru # Use LRU eviction for all keys
# That said we use `volatile-lru` as Redis is used both as a cache and processing
# queue in self-hosted Sentry.
# > The volatile-lru and volatile-random policies are mainly useful when you want to
# > use a single Redis instance for both caching and for a set of persistent keys.
# > However, you should consider running two separate Redis instances in a case like
# > this, if possible.

maxmemory-policy volatile-lru

0 comments on commit 01867ec

Please sign in to comment.