Class: Stacks

Inherits:
Object
  • Object
show all
Defined in:
lib/stacks.rb

Defined Under Namespace

Modules: Backends, Cache, Items, MethodCache Classes: ColumnDependentCache, ModelExtensions, NoValueException, ReportCache

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.deactivateObject

Returns the value of attribute deactivate.



8
9
10
# File 'lib/stacks.rb', line 8

def deactivate
  @deactivate
end

.extra_prefixObject

Returns the value of attribute extra_prefix.



8
9
10
# File 'lib/stacks.rb', line 8

def extra_prefix
  @extra_prefix
end

.key_separatorObject

Returns the value of attribute key_separator.



8
9
10
# File 'lib/stacks.rb', line 8

def key_separator
  @key_separator
end

.model_listening_cachesObject

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

.redisObject

Returns the value of attribute redis.



8
9
10
# File 'lib/stacks.rb', line 8

def redis
  @redis
end

.redis_prefixObject

Returns the value of attribute redis_prefix.



8
9
10
# File 'lib/stacks.rb', line 8

def redis_prefix
  @redis_prefix
end

.restrictObject

Returns the value of attribute restrict.



8
9
10
# File 'lib/stacks.rb', line 8

def restrict
  @restrict
end

Class Method Details

.bust_all_cachesObject



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