Class: Shutterbug::CacheManager::NoCache
- Inherits:
-
Object
- Object
- Shutterbug::CacheManager::NoCache
- Defined in:
- lib/shutterbug/cache_manager/no_cache.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
Returns the value of attribute entries.
Instance Method Summary collapse
- #add_entry(cache_entry) ⇒ Object
- #find(key) ⇒ Object
-
#initialize ⇒ NoCache
constructor
A new instance of NoCache.
Constructor Details
#initialize ⇒ NoCache
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
#entries ⇒ Object
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 |