Module: CacheAdvance
- Defined in:
- lib/cache_advance.rb,
lib/cache_advance/lock.rb,
lib/cache_advance/mapper.rb,
lib/cache_advance/cache_set.rb,
lib/cache_advance/named_cache.rb,
lib/cache_advance/cached_key_list.rb,
lib/cache_advance/active_record_sweeper.rb,
lib/cache_advance/named_cache_configuration.rb
Defined Under Namespace
Classes: ActiveRecordSweeper, CacheSet, CachedKeyList, Lock, Mapper, NamedCache, NamedCacheConfiguration, UnknownNamedCacheException
Class Attribute Summary collapse
-
.cache_set ⇒ Object
readonly
Returns the value of attribute cache_set.
-
.caching_enabled ⇒ Object
Returns the value of attribute caching_enabled.
Class Method Summary collapse
Class Attribute Details
.cache_set ⇒ Object (readonly)
Returns the value of attribute cache_set.
11 12 13 |
# File 'lib/cache_advance.rb', line 11 def cache_set @cache_set end |
.caching_enabled ⇒ Object
Returns the value of attribute caching_enabled.
12 13 14 |
# File 'lib/cache_advance.rb', line 12 def caching_enabled @caching_enabled end |
Class Method Details
.define_caches(store) {|Mapper.new(@cache_set)| ... } ⇒ Object
18 19 20 21 22 |
# File 'lib/cache_advance.rb', line 18 def self.define_caches(store) @cache_set = CacheSet.new(store) yield Mapper.new(@cache_set) @cache_set.setup_complete # This allows the cache set to finalize some of its configuration end |