new MLC(options)
AlexandraJS MultiLayer Cache
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Properties:
| Name | Type | Description |
|---|---|---|
options |
Object | |
chain |
Yadll |
Members
-
use
-
Alias of `MLC.push`
- See:
-
- {MLC.push}
Methods
-
clear(callback)
-
Parameters:
Name Type Description callback -
delete(key, field, callback)
-
Parameters:
Name Type Description keyfieldcallback -
get(key, field, callback)
-
Parameters:
Name Type Description keyfieldcallback -
has(key, field, callback)
-
Parameters:
Name Type Description keyfieldcallback -
pop()
-
Cuts cache from end of cache chain
Returns:
- Type
- Object | null
-
push(cache)
-
Adds new cache at end of cache chain
Parameters:
Name Type Description cacheObject Cache to be used in cache chain Returns:
- Type
- Object
-
set(key, field, value, callback)
-
Parameters:
Name Type Description keyfieldvaluecallback -
shift()
-
Cuts cache from end of cache chain
Returns:
- Type
- Object | null
-
unshift(cache)
-
Adds new cache at begin of cache chain
Parameters:
Name Type Description cacheObject Returns:
- Type
- Object