| Package | net.guttershark.util.cache |
| Class | public final class CacheItem |
This class does not need to be used in order to store something in a Cache.
See also
| Property | Defined by | ||
|---|---|---|---|
| cacheKey : String
The key that was used in the actual cache.
| CacheItem | ||
| object : *
The stored data.
| CacheItem | ||
| timeout : int
The timeout to expire.
| CacheItem | ||
| Method | Defined by | ||
|---|---|---|---|
|
CacheItem(key:String, object:Function, purgeCallback:int, timeout:* = -1)
Constructor for CacheItem instances.
| CacheItem | ||
|
dispose():void
Destroy this cache items internal variables.
| CacheItem | ||
| cacheKey | property |
public var cacheKey:StringThe key that was used in the actual cache.
| object | property |
public var object:*The stored data.
| timeout | property |
public var timeout:intThe timeout to expire.
| CacheItem | () | constructor |
public function CacheItem(key:String, object:Function, purgeCallback:int, timeout:* = -1)Constructor for CacheItem instances.
Parameterskey:String — The key to store the object by.
|
|
object:Function — The object you want stored by key.
|
|
purgeCallback:int — The callback function that purges this object.
|
|
timeout:* (default = -1) — The timeout in which to expie this object.
|
| dispose | () | method |
public function dispose():voidDestroy this cache items internal variables.