Class: CacheKeeper::Store

Inherits:
Array
  • Object
show all
Defined in:
lib/cache_keeper/store.rb

Instance Method Summary collapse

Instance Method Details

#autorefreshedObject



9
10
11
12
13
# File 'lib/cache_keeper/store.rb', line 9

def autorefreshed
  select do |cached_method|
    cached_method.options[:autorefresh].present?
  end
end

#find_by(klass, method_name) ⇒ Object



3
4
5
6
7
# File 'lib/cache_keeper/store.rb', line 3

def find_by(klass, method_name)
  find do |cached_method|
    cached_method.klass == klass && cached_method.method_name == method_name
  end
end