Class: ObjectCache::ClassCacher

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

Constant Summary collapse

@@cache =
{}

Class Method Summary collapse

Class Method Details

.cache(klass, id) ⇒ Object



5
6
7
# File 'lib/object_cache/class_cacher.rb', line 5

def self.cache(klass, id)
  ObjectCache.cache_store.fetch(klass, id)
end

.get_cacheObject



9
10
11
# File 'lib/object_cache/class_cacher.rb', line 9

def self.get_cache
  @@cache
end