Class: ArtirixCacheService::VariablesStores::Redis

Inherits:
Base
  • Object
show all
Defined in:
lib/artirix_cache_service/variables_stores/redis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#variable_get, #variable_set

Constructor Details

#initialize(redis_variable_prefix, redis_options = {}) ⇒ Redis

Returns a new instance of Redis.



11
12
13
14
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 11

def initialize(redis_variable_prefix, redis_options = {})
  @redis_variable_prefix = redis_variable_prefix
  @redis_options         = redis_options
end

Instance Attribute Details

#redis_variable_prefixObject (readonly)

Returns the value of attribute redis_variable_prefix.



5
6
7
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 5

def redis_variable_prefix
  @redis_variable_prefix
end

Instance Method Details

#typeObject



7
8
9
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 7

def type
  :redis
end