Setting and getting an int

Download stackexchange.redis eBook

Example

db.StringSet("key", 11021);
int i = (int)db.StringGet("key");

Or using StackExchange.Redis.Extensions:

db.Add("key", 11021);
int i = db.Get<int>("key");

Stats

Contributors: 2
2016-02-04
Licensed under: CC-BY-SA

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

Download eBook