Module: AtomicCache::GlobalLMTCacheConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/atomic_cache/concerns/global_lmt_cache_concern.rb

Overview

this concern provides a single LMT for the whole model

Constant Summary collapse

ATOMIC_CACHE_CONCERN_MUTEX =
Mutex.new

Instance Method Summary collapse

Instance Method Details

#atomic_cacheObject



108
109
110
# File 'lib/atomic_cache/concerns/global_lmt_cache_concern.rb', line 108

def atomic_cache
  self.class.atomic_cache
end

#cache_keyspace(ns) ⇒ Object



112
113
114
# File 'lib/atomic_cache/concerns/global_lmt_cache_concern.rb', line 112

def cache_keyspace(ns)
  self.class.cache_keyspace(ns)
end

#expire_cache(at = Time.now) ⇒ Object



116
117
118
# File 'lib/atomic_cache/concerns/global_lmt_cache_concern.rb', line 116

def expire_cache(at=Time.now)
  self.class.expire_cache(at)
end

#last_modified_timeObject



120
121
122
# File 'lib/atomic_cache/concerns/global_lmt_cache_concern.rb', line 120

def last_modified_time
  self.class.last_modified_time
end