Exemplo n.º 1
0
 public RedisValue Set(string key, string value, TimeSpan?expiry = default(TimeSpan?), When when = When.Always, CommandFlags flags = CommandFlags.None, int db = 0)
 {
     return(WriteConn.GetDatabase(db).StringSet(key, value, expiry, when, flags));
 }
Exemplo n.º 2
0
 private IDatabase GetDatabase(int db = 0, bool isRead = false)
 {
     return(isRead ?
            ReadConn.GetDatabase(db) :
            WriteConn.GetDatabase(db));
 }