Class: Stacks
- Inherits:
-
Object
- Object
- Stacks
- Defined in:
- lib/stacks.rb
Defined Under Namespace
Modules: Backends, Cache, Items, MethodCache Classes: ColumnDependentCache, ModelExtensions, NoValueException, ReportCache
Class Attribute Summary collapse
-
.deactivate ⇒ Object
Returns the value of attribute deactivate.
-
.extra_prefix ⇒ Object
Returns the value of attribute extra_prefix.
-
.key_separator ⇒ Object
Returns the value of attribute key_separator.
-
.model_listening_caches ⇒ Object
Returns the value of attribute model_listening_caches.
-
.redis ⇒ Object
Returns the value of attribute redis.
-
.redis_prefix ⇒ Object
Returns the value of attribute redis_prefix.
-
.restrict ⇒ Object
Returns the value of attribute restrict.
Class Method Summary collapse
Class Attribute Details
.deactivate ⇒ Object
Returns the value of attribute deactivate.
8 9 10 |
# File 'lib/stacks.rb', line 8 def deactivate @deactivate end |
.extra_prefix ⇒ Object
Returns the value of attribute extra_prefix.
8 9 10 |
# File 'lib/stacks.rb', line 8 def extra_prefix @extra_prefix end |
.key_separator ⇒ Object
Returns the value of attribute key_separator.
8 9 10 |
# File 'lib/stacks.rb', line 8 def key_separator @key_separator end |
.model_listening_caches ⇒ Object
Returns the value of attribute model_listening_caches.
8 9 10 |
# File 'lib/stacks.rb', line 8 def model_listening_caches @model_listening_caches end |
.redis ⇒ Object
Returns the value of attribute redis.
8 9 10 |
# File 'lib/stacks.rb', line 8 def redis @redis end |
.redis_prefix ⇒ Object
Returns the value of attribute redis_prefix.
8 9 10 |
# File 'lib/stacks.rb', line 8 def redis_prefix @redis_prefix end |
.restrict ⇒ Object
Returns the value of attribute restrict.
8 9 10 |
# File 'lib/stacks.rb', line 8 def restrict @restrict end |
Class Method Details
.bust_all_caches ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/stacks.rb', line 25 def self.bust_all_caches keys = redis.keys("#{redis_prefix}*") redis.pipelined do keys.each { |key| redis.del(key) } end end |