Class: CPRuntime::MemcacheClient

Inherits:
Object
  • Object
show all
Includes:
CPRuntime
Defined in:
lib/cpruntime/MemcacheClient.rb,
lib/cpruntime/MemcacheClient.rb

Instance Method Summary collapse

Methods included from CPRuntime

#credential_map

Instance Method Details

#create_from_svc(hostname) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/cpruntime/MemcacheClient.rb', line 12

def create_from_svc(hostname)
  m = credential_map("membase")
  c = m[hostname];
  p c
  client = MemCache.new(c.host+":"+c.port)
  return client
end