Class: ActiveSupport::Cache::RedisStoreWithCas
- Inherits:
-
RedisStore
- Object
- RedisStore
- ActiveSupport::Cache::RedisStoreWithCas
- Defined in:
- lib/active_support/cache/redis_store_with_cas.rb
Instance Method Summary collapse
- #candocas? ⇒ Boolean
-
#initialize(*adresses) ⇒ RedisStoreWithCas
constructor
A new instance of RedisStoreWithCas.
Constructor Details
#initialize(*adresses) ⇒ RedisStoreWithCas
Returns a new instance of RedisStoreWithCas.
63 64 65 66 |
# File 'lib/active_support/cache/redis_store_with_cas.rb', line 63 def initialize(*adresses) super check_and_extend_cas end |
Instance Method Details
#candocas? ⇒ Boolean
68 69 70 |
# File 'lib/active_support/cache/redis_store_with_cas.rb', line 68 def candocas? @data.is_a?(Redis::Store) && @data.respond_to?(:cas) end |