Class: CloudpiRuntime::RedisClient
- Inherits:
-
Object
- Object
- CloudpiRuntime::RedisClient
- Includes:
- CloudpiRuntime
- Defined in:
- lib/client/RedisClient.rb,
lib/client/RedisClient.rb
Instance Method Summary collapse
Methods included from CloudpiRuntime
Instance Method Details
#create_from_svc(hostname) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/client/RedisClient.rb', line 14 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 |