Class: ActiveSupport::Cache::RedisStoreWithCas

Inherits:
RedisStore
  • Object
show all
Defined in:
lib/active_support/cache/redis_store_with_cas.rb

Instance Method Summary collapse

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

Returns:

  • (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