I do not have MemcacheAdmin on the server, but I need to update a specific cache. How to do it?
memcache->flush() - flushes the entire cache
upd : memcache->delete('key'); You can, of course, delete a certain cache, and wait until it is updated.
Set the recording lifetime from the app.
$memcache->set('var_key', 'some really big variable', MEMCACHE_COMPRESSED, 50); https://php.net/manual/en/memcache.set.php
And yes, for very rarely updated data, it makes sense to do memcache->delete('key'); This is a cache.
If you constantly need this data, then look in the direction of key-value storage
Source: https://ru.stackoverflow.com/questions/352705/
All Articles