Class: Rack::Cache::MetaStore::RedisBase
- Inherits:
-
Rack::Cache::MetaStore
- Object
- Rack::Cache::MetaStore
- Rack::Cache::MetaStore::RedisBase
- Extended by:
- Utils
- Defined in:
- lib/rack/cache/redis_metastore.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Rack::Cache::MetaStore
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
The Redis::Store object used to communicate with the Redis daemon.
Class Method Summary collapse
Instance Attribute Details
#cache ⇒ Object (readonly)
The Redis::Store object used to communicate with the Redis daemon.
8 9 10 |
# File 'lib/rack/cache/redis_metastore.rb', line 8 def cache @cache end |
Class Method Details
.resolve(uri) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rack/cache/redis_metastore.rb', line 10 def self.resolve(uri) db = uri.path.sub(/^\//, '') db = "0" if db.empty? server = { :host => uri.host, :port => uri.port || "6379", :db => db } new server end |