Packageorg.openzoom.flash.utils
Interfacepublic interface ICache extends IDisposable
ImplementorsCache

Interface for cache implementations.



Public Properties
 PropertyDefined by
  size : int
[read-only] Returns the size of the cache.
ICache
Public Methods
 MethodDefined by
  
contains(key:*):Boolean
Returns true if cache has item at key and otherwise false
ICache
 Inherited
dispose():void
Releases all resources this object holds on to.
IDisposable
  
get(key:*):ICacheItem
Returns cache item at key.
ICache
  
put(key:*, item:ICacheItem):void
Put item into cache at key.
ICache
  
Remove item from cache at key.
ICache
Property detail
sizeproperty
size:int  [read-only]

Returns the size of the cache.

Implementation
    public function get size():int
Method detail
contains()method
public function contains(key:*):Boolean

Returns true if cache has item at key and otherwise false

Parameters
key:*

Returns
Boolean
get()method 
public function get(key:*):ICacheItem

Returns cache item at key.

Parameters
key:*

Returns
ICacheItem
put()method 
public function put(key:*, item:ICacheItem):void

Put item into cache at key.

Parameters
key:*
 
item:ICacheItem
remove()method 
public function remove(key:*):ICacheItem

Remove item from cache at key.

Parameters
key:*

Returns
ICacheItem