I believe that the standard way to cache something using mamcached is to insert an object into the cache for a certain period of time, for example.
memcli:set(key, rows_array, 5 * 60)
Is there a better way to cache things in which the cache will be checked inside the database to see if the data has changed, rather than relying on a timer that can cause synchronization problems?
I will use PHP.
php caching memcached
elfintar
source share