Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisType

Query a Redis value type.


Description

Return a description of the type of the value corresponding to the specified key.

Usage

redisType(key)

Arguments

key

The key to look up.

Details

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.

Value

A descriptive character string that may be one of "none", "string", "list", or "set". "none" is returned if the key does not exist.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisSet('x',5)
redisLPush('y',6)
redisType('x')
redisType('y')

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.