public RedisSessionOptions(RedisGroup redisGroup) { if (redisGroup == null) throw new ArgumentNullException("redisGroup"); this.redisGroup = redisGroup; SetDefault(); }
/// <summary> /// Use RedisSession. After enabled, you can take RedisSession from environment.AsRedisSession(). /// </summary> public static IAppBuilder UseRedisSession(this IAppBuilder app, RedisGroup redis) { return app.Use(typeof(RedisSessionMiddleware), redis); }
public RedisSessionMiddleware(AppFunc next, RedisGroup redis) : this(next, new RedisSessionOptions(redis)) { }
public RedisList(RedisGroup connectionGroup, string listKey) : this(connectionGroup.GetSettings(listKey), listKey) { }
public RedisSet(RedisGroup connectionGroup, string stringKey) : this(connectionGroup.GetSettings(stringKey), stringKey) { }
public RedisSubject(RedisGroup connectionGroup, string key, PubSubKeyType keyType = PubSubKeyType.Normal) : this(connectionGroup.GetSettings(key), key, keyType) { }
public RedisDictionary(RedisGroup connectionGroup, string hashKey) : this(connectionGroup.GetSettings(hashKey), hashKey) { }