Class: Termtter::MemoryCache

Inherits:
Object
  • Object
show all
Defined in:
lib/termtter/memory_cache.rb

Defined Under Namespace

Classes: MemCacheMock

Instance Method Summary collapse

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

#storageObject

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