Private method expire
Expires a URI from the local cache Events: expire Fires when the URI expires
Parameters:
uri must be a String.
(URI of the local representation)
silent must be a Boolean.
([Optional] If 'true', the event will not fire)
Returns an Undefined
(undefined)
Private method expired
Determines if a URI has expired
Parameters:
Returns a Boolean
(True if the URI has expired)
Private method get
Returns the cached object {headers, response} of the URI or false
Parameters:
uri must be a String.
(URI/Identifier for the resource to retrieve from cache)
expire must be a Boolean.
([Optional] If 'false' the URI will not expire)
silent must be a Boolean.
([Optional] If 'true', the event will not fire)
Returns a Mixed
(URI Object {headers, response} or False)
Private method set
Sets, or updates an item in cache.items
Parameters:
uri must be a String.
(URI to set or update)
property must be a String.
(Property of the cached URI to set)
value can be of any type.
(Value to set)
Returns a Mixed
(URI Object {headers, response} or undefined)
Private method clean
Returns an Undefined
(undefined)