Class: Cachetastic::Caches::Base::RegisteredCaches

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb

Overview

Used to store a list of all the caches registered with the system. In order for a cache to be registered it must extend Cachetastic::Caches::Base.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRegisteredCaches

Returns a new instance of RegisteredCaches.



37
38
39
# File 'lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb', line 37

def initialize
  @list = []
end

Instance Attribute Details

#listObject (readonly)

list of all caches registered with the system.



35
36
37
# File 'lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb', line 35

def list
  @list
end