Skip to content
Browse files

added info to readme

  • Loading branch information...
1 parent 9d7a95f commit 21daef0c4ce6e4a8ac547d1a4a62e89c65108aba Karl Seguin committed
Showing with 12 additions and 0 deletions.
  1. +12 −0
@@ -4,3 +4,15 @@ The idea though is to limit the amount of object instantiation as much as possib
Basically, a fixed number of "Redis" objects are created. Each redis object has a fixed buffer and a connection. When you are writing or reading, it'll try to use the fix buffer if it's large enough, else it'llcreate one. The goal is to hav 90% of all commands fit within the buffer. As for connections, they can time out or mess up, so the Redis object can always kill its connection and get a new one.
+## usage
+Create a RedisManager (thread-safe) `var manager = RedisManager.Configure(c => c.ConnectTo("", 6739));`
+Get an `IRedis` instance from it:
+ using (var redis = manager.Redis())
+ {
+ redis.Set("goku:power", 9000);
+ redis.Get<int>("goku:power");
+ }

0 comments on commit 21daef0

Please sign in to comment.
Something went wrong with that request. Please try again.