StackExchange.Redis Setting and getting an int

Download StackExchange.Redis for free

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");
Setting Values