Class: ActiveSupport::Cache::RedisStore
- Inherits:
-
Store
- Object
- Store
- ActiveSupport::Cache::RedisStore
- Includes:
- Redis::ClientHelper
- Defined in:
- lib/active_support/cache/redis_store.rb
Instance Method Summary collapse
-
#clear(options = nil) ⇒ Object
Clear the entire cache on server.
-
#initialize(*options) ⇒ RedisStore
constructor
A new instance of RedisStore.
-
#read_multi(*names) ⇒ Object
Reads multiple values from the cache using a single call to the servers for all keys.
Methods included from Redis::ClientHelper
Constructor Details
#initialize(*options) ⇒ RedisStore
Returns a new instance of RedisStore.
5 6 7 8 9 |
# File 'lib/active_support/cache/redis_store.rb', line 5 def initialize(*) = . super() extend Strategy::LocalCache end |
Instance Method Details
#clear(options = nil) ⇒ Object
Clear the entire cache on server. This method should be used with care when shared cache is being used.
20 21 22 |
# File 'lib/active_support/cache/redis_store.rb', line 20 def clear( = nil) redis.flushdb end |