public interface PortalCacheAttributes
Modifier and Type | Method and Description |
---|---|
long |
getCreateDate()
get the creation date as timestamp in milliseconds from the entry.
|
boolean |
getIsEternal()
true if this cache object should not be expired -
maxLive will be ignored
|
long |
getLastAccessDate()
get the last access date of the cache element as timestamp in milliseconds.
|
int |
getMaxAge()
get the maximum age that the cache entry may exist in seconds.
|
int |
getMaxIdleTime()
get the maximum idle time of the cache entry in seconds.
|
int |
getSize()
get the approximate size of the entry in bytes.
|
void |
setIsEternal(boolean isEternal)
Sets this cache object eternal - it will live not expire.
|
void |
setLastAccessDateToNow()
update the current access time to the current timestamp.
|
void |
setMaxAge(int maxAge)
set the maximum age of a cache entry - has to be > 0
|
void |
setMaxIdleTime(int maxIdleTime)
set the maximum idle time of the cache entry in seconds.
|
void |
setSize(int size)
set the cache entry size in bytes.
|
boolean getIsEternal()
void setIsEternal(boolean isEternal)
isEternal
- true for making eternallong getCreateDate()
long getLastAccessDate()
void setLastAccessDateToNow()
int getMaxAge()
getIsEternal()
void setMaxAge(int maxAge)
maxAge
- the max age of the entry in seconds.setIsEternal(boolean)
int getMaxIdleTime()
void setMaxIdleTime(int maxIdleTime)
maxIdleTime
- the max idle time of the entry in seconds.int getSize()
void setSize(int size)
size
- the approximate size of the entry in bytes.Copyright © 2022 Gentics Software. All Rights Reserved.