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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea48c0-1ce7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea48c0-1ce7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?