Data Types
Last updated
Was this helpful?
Last updated
Was this helpful?
The default is map - key value store. Then there is Set, that can be used to implement a dictionary. Set is to be used for fast membership checks and multi-set arithmetics (O(n) performance).
Key-value Map
Key is name of a . All set commands have S
prefix.
Add an item into set.
Returns all items from a set.
Returns 1 if member is contained in a set, 0 otherwise.
Get the cardinality (size) of set.
We can do set arithmetics, like union, intersection and difference.
TODO:
by a score, descending.