Class: UzuUzu::Memcache::Appengine

Inherits:
Object
  • Object
show all
Defined in:
lib/uzuuzu-core/memcache/appengine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env = nil) ⇒ Appengine

Returns a new instance of Appengine.



16
17
18
19
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 16

def initialize(env=nil)
  @adapter = :appengine
  @memcache = ::AppEngine::Memcache.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(action, *args) ⇒ Object



24
25
26
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 24

def method_missing(action, *args)
  @memcahce.send(action, args)
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



12
13
14
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 12

def adapter
  @adapter
end