Class: FreshRedis
- Inherits:
-
Object
- Object
- FreshRedis
- Defined in:
- lib/fresh_redis.rb,
lib/fresh_redis/key.rb,
lib/fresh_redis/set.rb,
lib/fresh_redis/hash.rb,
lib/fresh_redis/string.rb,
lib/fresh_redis/version.rb
Defined Under Namespace
Modules: Hash, Set, String Classes: Key
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
- #build_key(base_key, options = {}) ⇒ Object
-
#initialize(redis, options = {}) ⇒ FreshRedis
constructor
A new instance of FreshRedis.
Methods included from String
#fdecr, #fdecrby, #fincr, #fincrby, #fincrbyfloat, #fsum
Methods included from Set
#fsadd, #fsismembers, #fsmembers, #fsrem
Methods included from Hash
#fhdel, #fhget, #fhgetall, #fhset
Constructor Details
#initialize(redis, options = {}) ⇒ FreshRedis
Returns a new instance of FreshRedis.
12 13 14 15 |
# File 'lib/fresh_redis.rb', line 12 def initialize(redis, ={}) @redis = redis = end |
Instance Method Details
#build_key(base_key, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/fresh_redis.rb', line 17 def build_key(base_key, ={}) = .merge() Key.build(base_key, ) end |