How to purge old Redis cache?

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
525
Points
28
How can I purge old redis cache? my website runs monthly without any reboots and I suppose redis cache data will be big and it should be purged to have a new start. I read on the net and see some commands to run in SSH but not sure which is correct. Can anyone tell me which command to run to purge old redis cache?
 

AlbaHost

Well-known member
Moderator
Hosting Provider
Joined
Jan 18, 2017
Messages
638
Points
43
Redis is in-memory write data-keys, all that it uses it is memory and this depends on how much maxmemory you added in redis config, all what you can do is to restart redis if you think that it is not caching, otherwise it's just fine as is. However, if you want to flush all data/keys just use:
redis-cli FLUSHALL
 
Last edited:

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
525
Points
28
I am curious after purged all redis cache then how to check if it worked or not?
 
Latest Threads
Replies
1
Views
38
Replies
3
Views
75
Replies
3
Views
75

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top