Class: Shutterbug::CacheManager::NoCache

Inherits:
Object
  • Object
show all
Defined in:
lib/shutterbug/cache_manager/no_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoCache

Returns a new instance of NoCache.



5
6
7
# File 'lib/shutterbug/cache_manager/no_cache.rb', line 5

def initialize
  @entries = {}
end

Instance Attribute Details

#entriesObject

Returns the value of attribute entries.



4
5
6
# File 'lib/shutterbug/cache_manager/no_cache.rb', line 4

def entries
  @entries
end

Instance Method Details

#add_entry(cache_entry) ⇒ Object



13
14
15
# File 'lib/shutterbug/cache_manager/no_cache.rb', line 13

def add_entry(cache_entry)
  @entries[cache_entry.key] = cache_entry
end

#find(key) ⇒ Object



9
10
11
# File 'lib/shutterbug/cache_manager/no_cache.rb', line 9

def find(key)
  return @entries[key]
end