Description Usage Arguments Details Value Author(s) References See Also Examples
Return a description of the type of the value corresponding to the specified key.
1 | redisType(key)
|
key |
The key to look up. |
The Redis database differentiates three types of values. The value types determine how Redis operates on the key/value pairs, not what kind of data may be contained within. Each value type may store generic R objects, binary blobs, or character strings. The Redis value types are:
string: A single value is associated with the key
list: A stack of values is associated with the key
set: A set of values is associated with the key.
Values of "list" and "set" types have available to them special stack and set operations, respectively.
A descriptive character string that may be one of "none", "string", "list", or "set". "none" is returned if the key does not exist.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 7 8 | ## Not run:
redisConnect()
redisSet('x',5)
redisLPush('y',6)
redisType('x')
redisType('y')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.