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)); }
private IDatabase GetDatabase(int db = 0, bool isRead = false) { return(isRead ? ReadConn.GetDatabase(db) : WriteConn.GetDatabase(db)); }