ElastiCache for Redis uses storage based on the memory capacity of the selected node size. The actual amount of storage used depends on the data, data structures, and any additional overhead required by Redis.
To determine the storage capacity, you can select from a range of node types available in AWS. Each node type has different memory capacities, which directly affects the storage that ElastiCache Redis can use. Here is an example list of some common node types and their memory capacities:
You can find the complete list of node types and their memory capacities in the official AWS documentation.
Keep in mind that not all of the memory is available for storing your data; Redis reserves a portion of it for internal processes. To store data in ElastiCache for Redis, you need to consider:
To monitor the current memory usage, run the INFO
command, which provides statistics about memory utilization:
127.0.0.1:6379> INFO MEMORY
This will return information including used_memory
, used_memory_rss
, and other memory-related metrics.
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.