| Package | org.openzoom.flash.utils |
| Class | public final class Cache |
| Implements | ICache |
| Property | Defined by | ||
|---|---|---|---|
| size : int [read-only]
Returns the size of the cache.
| Cache | ||
| Method | Defined by | ||
|---|---|---|---|
|
Cache(size:int)
Constructor.
| Cache | ||
|
contains(key:*):Boolean
Returns
true if cache has item at key
and otherwise false
| Cache | ||
|
dispose():void
Releases all resources this object holds on to.
| Cache | ||
|
get(key:*):ICacheItem
| Cache | ||
|
put(key:*, item:ICacheItem):void
Put item into cache at key.
| Cache | ||
|
remove(key:*):ICacheItem
Remove item from cache at key.
| Cache | ||
| size | property |
size:int [read-only]Returns the size of the cache.
Implementation public function get size():int
| Cache | () | constructor |
public function Cache(size:int)Constructor.
Parameterssize:int |
| contains | () | method |
public function contains(key:*):Boolean
Returns true if cache has item at key
and otherwise false
key:* |
Boolean |
| dispose | () | method |
public function dispose():voidReleases all resources this object holds on to. Do not use object after calling dispose.
| get | () | method |
| put | () | method |
public function put(key:*, item:ICacheItem):voidPut item into cache at key.
Parameterskey:* |
|
item:ICacheItem |
| remove | () | method |
public function remove(key:*):ICacheItemRemove item from cache at key.
Parameterskey:* |
ICacheItem |