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
|
- 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: