Module: tastypie/lib/cache

Provides a simple caching interface to resources


new (require("tastypie/lib/cache"))( [options])

A no op cache type

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Argument Default Description
timeout Number <optional>
60
engine String <optional>
catbox-noop
segment String <optional>
tastypie
partition String <optional>
tastypie
varies Array.<String> <optional>
opts Object <optional>

additional options for the catbox backend

control object <optional>
Source:

Requires

  • module:tastypie/class
  • module:tastypie/class/options
  • module:tastypie/class/parent

Methods


get(key [, callback])

Sets a value at a given cache key

Parameters:
Name Type Argument Description
key String

A unique key to retrieve a value from

callback function <optional>

A callback function to be called once the cache key has been set

Source:

set(key, value [, callback])

Sets a value at a given cache key

Parameters:
Name Type Argument Description
key String

A unique ket to set a value at

value Mixed

The value to set at the given key

callback function <optional>

A callback function to be called once the cache key has been set

Source: