Documentation home page

CFlickr.cache
Component MemoryCache

cache.AbstractCache
  |
  +--cache.MemoryCache

Caches responses from the Flickr API to memory, internally.
You should place an instance of this class in a persistent scope, such as application, or session so that responses are cached between requests.

Method Summary
public AbstractCache init([numeric timeout="3600"])
public boolean existsInCache(struct params)
public any getFromCache(struct params)
public void purgeCache()
public void saveToCache(struct params, string xml)

Methods inherited from cache.AbstractCache
createHash
 

Method Detail

existsInCache

public boolean existsInCache(struct params)
Parameters:
struct params (Required)

getFromCache

public any getFromCache(struct params)
Parameters:
struct params (Required)

init

public CFlickr.cache.AbstractCache init([numeric timeout="3600"])
Parameters:
numeric timeout="3600" (Optional) - seconds

purgeCache

public void purgeCache()

saveToCache

public void saveToCache(struct params, string xml)
Parameters:
struct params (Required)
string xml (Required)