Class: CPRuntime::RedisClient

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

Constant Summary

Constants included from CPRuntime

META_DATA_PATH

Instance Method Summary collapse

Methods included from CPRuntime

#credential_map, #getHosts, refreshDedicatedServiceJsonDoc, service_json_doc, service_json_doc=

Instance Method Details

#create_from_svc(hostname) ⇒ Object



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

def create_from_svc(hostname)
  m = credential_map("redis")
  c = m[hostname];
  p c
  client = Redis.new(:host => c.host,:port => c.port,:password => c.password)
  return client
end