public static ApiThrottleOptions UseRedisCacheAndStorage(this ApiThrottleOptions options, Action <RedisOptions> configure)
        {
            Action <RedisCacheOptions> opt1 = (opt) => { configure(opt); opt.SameWithStorage = true; };

            options.AddExtension(new RedisCacheOptionsExtension(opt1));

            Action <RedisStorageOptions> opt2 = (opt) => { configure(opt); opt.SameWithCache = true; };

            options.AddExtension(new RedisStorageOptionsExtension(opt2));

            return(options);
        }
 public static ApiThrottleOptions UseRedisStorage(this ApiThrottleOptions options, Action <RedisStorageOptions> configure)
 {
     options.AddExtension(new RedisStorageOptionsExtension(configure));
     return(options);
 }