If you have enough RAM on your Redis machine then no.
If you’re limited, set a MaxTTL of a week or so to get started and watch the memory of Redis.
How can I watch the memory of Redis and understand if it is limited? Is there any article you point out to me or could you explain please.
And why RAM happens to be high or low, is it about site traffic?
Your hosting provider might offer Redis metrics already.
Regarding expiration: https://redis.io/commands/expire
I’ve installed it 4 days ago and these are current stats. What do you think?
# Memory
used_memory:20544544
used_memory_human:19.59M
used_memory_rss:20152320
used_memory_rss_human:19.22M
used_memory_peak:21504608
used_memory_peak_human:20.51M
used_memory_peak_perc:95.54%
used_memory_overhead:1827918
used_memory_startup:797256
used_memory_dataset:18716626
used_memory_dataset_perc:94.78%
allocator_allocated:20890352
allocator_active:22257664
allocator_resident:25649152
total_system_memory:1029038080
total_system_memory_human:981.37M
used_memory_lua:41984
used_memory_lua_human:41.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.07
allocator_frag_bytes:1367312
allocator_rss_ratio:1.15
allocator_rss_bytes:3391488
rss_overhead_ratio:0.79
rss_overhead_bytes:-5496832
mem_fragmentation_ratio:0.98
mem_fragmentation_bytes:-329328
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:49694
mem_aof_buffer:0
mem_allocator:jemalloc-5.2.1
active_defrag_running:0
lazyfree_pending_objects:0
Sorry, this is the support forum for Redis Object Cache.
If you need assistance with your Redis Server, I’d suggest stackoverflow.com