Package overit.geocall.cache
Class Cache.Info
java.lang.Object
overit.geocall.cache.Cache.Info
- Enclosing class:
Cache
Utility class that holds the information about a specific cache entry.
-
Field Details
-
length
-
type
-
storeTtl
-
readTtl
-
view
-
-
Constructor Details
-
Info
public Info()
-
-
Method Details
-
getLength
- Returns:
- the entry's size expressed in byte
-
getType
- Returns:
- the type of the data contained in the current entry
-
getStoreTtl
- Returns:
- the remaining milliseconds before the entry will be evicted from the cache or -1 if the entry will never be removed.
-
getReadTtl
- Returns:
- the remaining milliseconds before the entry will be evicted from the cache or -1 if the entry will never be removed. This counter will be reset every time the cache's entry has been read.
-
getView
- Returns:
- the name of the view
-