Class: ArtirixCacheService::VariablesStores::Redis
- Defined in:
- lib/artirix_cache_service/variables_stores/redis.rb
Constant Summary collapse
- EMPTY_STRING =
''.freeze
- WILDCARD =
'*'.freeze
Instance Attribute Summary collapse
-
#redis_variable_prefix ⇒ Object
readonly
Returns the value of attribute redis_variable_prefix.
Instance Method Summary collapse
-
#initialize(redis_variable_prefix, redis_options = {}) ⇒ Redis
constructor
A new instance of Redis.
- #type ⇒ Object
- #variables ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(redis_variable_prefix, redis_options = {}) ⇒ Redis
Returns a new instance of Redis.
14 15 16 17 |
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 14 def initialize(redis_variable_prefix, = {}) @redis_variable_prefix = redis_variable_prefix @redis_options = end |
Instance Attribute Details
#redis_variable_prefix ⇒ Object (readonly)
Returns the value of attribute redis_variable_prefix.
8 9 10 |
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 8 def redis_variable_prefix @redis_variable_prefix end |
Instance Method Details
#type ⇒ Object
10 11 12 |
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 10 def type :redis end |
#variables ⇒ Object
19 20 21 |
# File 'lib/artirix_cache_service/variables_stores/redis.rb', line 19 def variables list.map { |key| clean_listed_variable key } end |