public class RESTCacheEntry extends Object implements CacheEntry
Constructor and Description |
---|
RESTCacheEntry(String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
Date |
created()
when was the entry created.
|
Struct |
getCustomInfo()
get all information data available for this entry
|
String |
getKey() |
Object |
getValue() |
int |
hitCount()
how many time was the entry accessed?
this information is optional and depends on the implementation,
when information is not available -1 is returned
|
long |
idleTimeSpan()
time in milliseconds after which the object is flushed from the cache if it is not accessed during that time.
|
Date |
lastHit()
when was the entry accessed last time.
|
Date |
lastModified()
when was the entry last time modified.
|
long |
liveTimeSpan()
define time until the entry is valid
|
long |
size()
the size of the object
|
public RESTCacheEntry(String key, Object value)
public String getKey()
getKey
in interface CacheEntry
public Object getValue()
getValue
in interface CacheEntry
public Date created()
CacheEntry
created
in interface CacheEntry
public Struct getCustomInfo()
CacheEntry
getCustomInfo
in interface CacheEntry
public int hitCount()
CacheEntry
hitCount
in interface CacheEntry
public long idleTimeSpan()
CacheEntry
idleTimeSpan
in interface CacheEntry
public Date lastHit()
CacheEntry
lastHit
in interface CacheEntry
public Date lastModified()
CacheEntry
lastModified
in interface CacheEntry
public long liveTimeSpan()
CacheEntry
liveTimeSpan
in interface CacheEntry
public long size()
CacheEntry
size
in interface CacheEntry
Copyright © 2015 Lucee