-
<private, static> _validate(value, validators)
-
Parameters:
Name |
Type |
Description |
value |
|
|
validators |
|
|
- Source:
-
-
add(key, value, force)
-
Allow to add new key value pair, the key cannot be null, undefined, or an empty string.
In case the key already exist, the value will be overwritten if force params is true or this
allow overriding else it throw an TypeError.
Parameters:
Name |
Type |
Default |
Description |
key |
*
|
|
|
value |
*
|
|
|
force |
Boolean
|
false
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
clear()
-
Clear the cache and reset collection to an empty object.
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
contain(key)
-
Parameters:
Name |
Type |
Description |
key |
|
|
- Source:
-
Returns:
-
Type
-
boolean
-
get(key)
-
Return the value associated to the key.
Parameters:
Name |
Type |
Description |
key |
|
|
- Source:
-
Returns:
-
Type
-
*
-
remove(key)
-
Remove to value from the cache. Does nothing if the key does not exist.
Parameters:
Name |
Type |
Description |
key |
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
setAllowOverride(value)
-
Parameters:
Name |
Type |
Description |
value |
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
setCollection(value)
-
Parameters:
Name |
Type |
Description |
value |
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
setKeyValidators(value)
-
Parameters:
Name |
Type |
Description |
value |
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore
-
setValueValidators(value)
-
Parameters:
Name |
Type |
Description |
value |
|
|
- Source:
-
Returns:
The current instance (this)
-
Type
-
TStore