After the installation of redis4.0, the memory continues to rise, how to safely clear the memory?

php adds redis cache to the page, and it has a life cycle. It has been used for a month and found that the memory is almost full. How to deal with it? What is the impact of clearing memory directly? What"s the safest thing to do? Thank you!

Apr.03,2021

the safest way is to add memory (if you use an in-memory database, of course you need a larger memory)
and since it is a cache, there should be no problem with clearing it. The general practice is to clear the expired data

.
Menu