What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

MEMORY PURGE

Asks the allocator to release memory.

Usage
MEMORY PURGE
Complexity
Depends on how much memory is allocated, could be slow
Since
4.0.0
ACL Categories
@slow
Command flags
LOADING

The MEMORY PURGE command attempts to purge dirty pages so these can be reclaimed by the allocator.

This command is currently implemented only when using jemalloc as an allocator, and evaluates to a benign NOOP for all others.

Replies

RESP2

RESP3