Interface ILRUCacheable


public interface ILRUCacheable
Types implementing this interface can occupy a variable amount of space in an LRUCache. Cached items that do not implement this interface are considered to occupy one unit of space.
See Also:
LRUCache
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the space the receiver consumes in an LRU Cache.
  • Method Details

    • getCacheFootprint

      int getCacheFootprint()
      Returns the space the receiver consumes in an LRU Cache. The default space value is 1.
      Returns:
      int Amount of cache space taken by the receiver