Chico UI

ch.Cache (Class)

Documentation updated on Fri May 18 2012 12:47:07 GMT-0300 (GMT-03:00), generated by JsDoc Toolkit 2.4.0

Overview

Cache control utility.

Summary

Visibility Name Description
<public>  
map
Map of cached resources
Visibility Name Description
<public>  
Clears the cache map
<public>  
get(url)
Get a resource from the cache
<public>  
rem(url)
Remove a resource from the cache
<public>  
set(url, data)
Set a resource to the cache control

Classdetail

Properties detail

map (public, object)

Map of cached resources

Methods detail

flush (public)

Clears the cache map

get (public)

Get a resource from the cache

Parameters
  • url: string. Resource location
Returns
  • data Resource information

rem (public)

Remove a resource from the cache

Parameters
  • url: string. Resource location

set (public)

Set a resource to the cache control

Parameters
  • url: string. Resource location
  • data: string. Resource information