Is this really necessary? Getting the set of keys is already pretty slow, adding a listener would slow down concurrent writes in the cache as well.