Redis is an open-source, BSD-licensed advanced key-value store. It is often referred to as a data structure server since the keys can contain strings, hashes, lists, sets, and sorted sets. Redis is written in C.
Redis is a NoSQL database that follows the principle of a key-value store.
Some commands of Redis.
SMOVE: Move the specified member from the set at srckey to the set at dstkey.
SPOP: Remove a random element from a Set returning it as a return value.
SRANDMEMBER: Return a random element from a Set, without removing the element.
SREM: Remove the specified member from the set value stored at the key.
SUNION: Return the members of a set resulting from the union of all the sets held at the specified keys.
SUNIONSTORE: This command works exactly like SUNION but instead of being returned the resulting set is stored as dstkey.
TTL: The TTL command returns the remaining time to live in seconds of a key that has an EXPIRE set.
TYPE: Return the type of the value stored at the key in form of a string.
ZADD: Add the specified member having the specified score to the sorted set stored at the key.
ZCARD: Return the sorted set cardinality (number of elements). If the key does not exist 0 is returned, like for empty sorted sets.
No comments:
Post a Comment