# ri > ActiveSupport::Cache::RedisCacheStore

## [ActiveSupport::Cache::RedisCacheStore](https://www.chedong.com/phpMan.php/perldoc/ActiveSupport%3A%3ACache%3A%3ARedisCacheStore/markdown) < [ActiveSupport::Cache::Store](https://www.chedong.com/phpMan.php/perldoc/ActiveSupport%3A%3ACache%3A%3AStore/markdown)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Redis cache store.

Deployment note: Take care to use a *dedicated Redis cache* rather than
pointing this at your existing Redis server. It won't cope well with
mixed usage patterns and it won't expire cache entries by default.

Redis cache server setup guide: <https://redis.io/topics/lru-cache>

* Supports vanilla Redis, hiredis, and [Redis::Distributed](https://www.chedong.com/phpMan.php/perldoc/Redis%3A%3ADistributed/markdown).
* Supports Memcached-like sharding across Redises with
  [Redis::Distributed](https://www.chedong.com/phpMan.php/perldoc/Redis%3A%3ADistributed/markdown).
* Fault tolerant. If the Redis server is unavailable, no exceptions are
  raised. Cache fetches are all misses and writes are dropped.
* Local cache. Hot in-memory primary cache within block/middleware
  scope.
* read_multi and write_multi support for Redis mget/mset. Use
  [Redis::Distributed](https://www.chedong.com/phpMan.php/perldoc/Redis%3A%3ADistributed/markdown) 4.0.1+ for distributed mget support.
* delete_matched support for Redis KEYS globs.
------------------------------------------------------------------------
## Constants:

DEFAULT_ERROR_HANDLER:
  [not documented]

DEFAULT_REDIS_OPTIONS:
  [not documented]

MAX_KEY_BYTESIZE:
  Keys are truncated with their own SHA2 digest if they exceed 1kB


## Class methods:

  new
  supports_cache_versioning?

## Instance methods:

  cleanup
  clear
  decrement
  delete_matched
  increment
  inspect
  max_key_bytesize
  read_multi
  redis
  redis_options

## Attributes:

  attr_reader max_key_bytesize
  attr_reader redis_options

