How it works...
INFO MEMORY prints all memory-related information in the current Redis instance. The items we are interested in are used_memory, maxmemory, and maxmemory_policy. The used_memory item means the memory space is currently allocated in bytes.
In this example, 836848 bytes were allocated. The maxmemory is the memory space limit for Redis, the default value is 0, which means there is no limit and Redis can use all possible memory space on the host (on 64-bit systems, the limit is 3GB on 32-bit systems). This value can be configured by the maxmemory directive. The maxmemory_policy is the eviction policy when the memory space limit is reached, and the default value is noeviction, which means no keys should be evicted by Redis. This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access