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))
 {
 }
Esempio n. 4
0
 public RedisList(RedisGroup connectionGroup, string listKey)
     : this(connectionGroup.GetSettings(listKey), listKey)
 {
 }
Esempio n. 5
0
 public RedisSet(RedisGroup connectionGroup, string stringKey)
     : this(connectionGroup.GetSettings(stringKey), stringKey)
 {
 }
Esempio n. 6
0
 public RedisSubject(RedisGroup connectionGroup, string key, PubSubKeyType keyType = PubSubKeyType.Normal)
     : this(connectionGroup.GetSettings(key), key, keyType)
 {
 }
Esempio n. 7
0
 public RedisDictionary(RedisGroup connectionGroup, string hashKey)
     : this(connectionGroup.GetSettings(hashKey), hashKey)
 {
 }