Class: Termtter::MemoryCache
- Inherits:
-
Object
- Object
- Termtter::MemoryCache
- Defined in:
- lib/termtter/memory_cache.rb
Defined Under Namespace
Classes: MemCacheMock
Instance Method Summary collapse
- #method_missing(method, *args, &block) ⇒ Object
-
#storage ⇒ Object
delegate to storage class.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/termtter/memory_cache.rb', line 12 def method_missing(method, *args, &block) storage.__send__(method, *args, &block) end |
Instance Method Details
#storage ⇒ Object
delegate to storage class
8 9 10 |
# File 'lib/termtter/memory_cache.rb', line 8 def storage @storage ||= storage_class.new(config.cache.memcached_server) end |