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 key
field
callback
-
get(key, field, callback)
-
Parameters:
Name Type Description key
field
callback
-
has(key, field, callback)
-
Parameters:
Name Type Description key
field
callback
-
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 cache
Object Cache to be used in cache chain Returns:
- Type
- Object
-
set(key, field, value, callback)
-
Parameters:
Name Type Description key
field
value
callback
-
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 cache
Object Returns:
- Type
- Object