KeyValueBasedCollection
Methods for key-value-based collections.
Last updated
Methods for key-value-based collections.
Last updated
set(key, value)
Set a value.
key
value
returns | | |
Example:
get(key)
Get a value.
key
returns | | |
Example:
push(key, data)
Push a data to array.
key
data
Example:
remove(key, data)
Remove a data from array.
key
data
Example:
find(key, params)
Find a data from array.
key
params
Example:
filter(key, params)
Filter data from array.
key
params
Example:
has(key, params)
Check if they have key or data.
key
params
Example:
increase(key, value)
Increase the number in the value.
key
value
Example:
decrease(key, value)
Decrease the number in the value.
key
value
Example:
delete(key)
Delete a key.
key
Example:
| Key to value.
| | | Your data to set.
| Key to value.
| Key to value.
| | | Data to be push to the array.
returns
| Key to value.
| | | Data to be remove from the array.
returns
| Key to value.
| The parameters you will use to find the data.
returns
| Key to value.
| The parameters you will use to filter the data.
returns
| Key to value.
| | | (optional) The parameters you will use to check the data.
returns
| Key to value.
The number to be incremented.
returns
| Key to value.
The number to be decremented.
returns
| Key to value.
returns