Is there any inbuilt way/ or a hack by which I can know which key is being evicted from memcache ?
There is one solution of polling for all possible keys inserted into memcache (e.g. get multi
), but that is inefficient and certainly not implementable for large number of keys.
The functionality is not needed to be run in production, but during some benchmarking and optimization runs.