Class EntityMemcacheStats

  • All Implemented Interfaces:
    MemcacheStats

    public class EntityMemcacheStats
    extends Object
    implements MemcacheStats
    Tracks hit/miss statistics for the memcache.
    • Constructor Detail

      • EntityMemcacheStats

        public EntityMemcacheStats()
    • Method Detail

      • getStats

        public Map<String,​EntityMemcacheStats.Stat> getStats()
        Get the live statistics. You can clear it if you want.
        Returns:
        the live map, but you can iterate through it just fine
      • recordHit

        public void recordHit​(com.google.cloud.datastore.Key key)
        Specified by:
        recordHit in interface MemcacheStats
      • recordMiss

        public void recordMiss​(com.google.cloud.datastore.Key key)
        Specified by:
        recordMiss in interface MemcacheStats