Class CacheItemAttributes
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.CacheItemAttributes
-
public class CacheItemAttributes extends java.lang.Object
The CacheItemAttributes contains the information about the ache attributes.
-
-
Constructor Summary
Constructors Constructor Description CacheItemAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getAbsoluteExpiration()
Gets absolute expiration for the object.CacheDependency
getDependency()
The dependency/dependencies for the item.void
setAbsoluteExpiration(java.util.Date _absoluteExpiration)
Sets absolute expiration for the object.void
setDependency(CacheDependency _d)
The dependency/dependencies for the item.
-
-
-
Method Detail
-
getAbsoluteExpiration
public java.util.Date getAbsoluteExpiration()
Gets absolute expiration for the object. You can add an item to the cache with the absolute expiration by specifying the exact date and time at which the item should be invalidated. When this time is elapsed, the item will be removed from the cache.- Returns:
- The absolute expiration associated with the cache item attributes.
-
setAbsoluteExpiration
public void setAbsoluteExpiration(java.util.Date _absoluteExpiration)
Sets absolute expiration for the object. You can add an item to the cache with absolute expiration by specifying the exact date and time at which the item should be invalidated. When this time is elapsed, the item will be removed from the cache.- Parameters:
_absoluteExpiration
- The absolute expiration to be associated with the cache item attributes.
-
getDependency
public CacheDependency getDependency()
The dependency/dependencies for the item. If there are no dependencies, this property contains a null reference.- Returns:
- CacheDependency associated with cache item attributes.
-
setDependency
public void setDependency(CacheDependency _d)
The dependency/dependencies for the item. If there are no dependencies, this property contains a null reference.- Parameters:
_d
- CacheDependency to be associated with cache item attributes.
-
-