mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
RedisCacheStoreProxy will blow up when RedisCacheStore raises a CommandError exception. In fact, by default the proxied store only handles BaseConnectionError exceptions, but will let bubble up any other type of exception from the underlying client. This pull request uses the same approach from RedisProxy, where store operations are wrapped in a `rescuing` block that rescues and ignores BaseError exceptions (the most generic exception class that can be raised by the Redis client). |
||
|---|---|---|
| .. | ||
| active_support_redis_store_proxy.rb | ||
| dalli_proxy.rb | ||
| mem_cache_store_proxy.rb | ||
| redis_cache_store_proxy.rb | ||
| redis_proxy.rb | ||
| redis_store_proxy.rb | ||