Class: CloudpiRuntime::MemcacheClient

Inherits:
Object
  • Object
show all
Includes:
CloudpiRuntime
Defined in:
lib/client/MemcacheClient.rb,
lib/client/MemcacheClient.rb

Instance Method Summary collapse

Methods included from CloudpiRuntime

#credential_map

Instance Method Details

#create_from_svc(hostname) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/client/MemcacheClient.rb', line 14

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