Setting Values

Download stackexchange.redis eBook

Example

All values in Redis are ultimately stored as a RedisValue type:

//"myvalue" here is implicitly converted to a RedisValue type
//The RedisValue type is rarely seen in practice.
db.StringSet("key", "aValue");

Stats

Contributors: 1
2015-11-10
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook