Class: CPRuntime::RedisClient
- Inherits:
-
Object
- Object
- CPRuntime::RedisClient
- Includes:
- CPRuntime
- Defined in:
- lib/cpruntime/RedisClient.rb,
lib/cpruntime/RedisClient.rb
Instance Method Summary collapse
Methods included from CPRuntime
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 |