Sha256: 0232642952141271a84fc263c6ea0aa42b1df806fb039b429a48fd17d45db844
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
# EasyRedis Helper methods for activerecord objects to use redis easily Don't worry about the type casting. EasyRedis does type conversions! ## Installation Add this line to your application's Gemfile: gem 'easy_redis' And then execute: $ bundle Or install it yourself as: $ gem install easy_redis ## Usage Create a file under initializers directory and set a redis client like above: EasyRedis::Redis.configure(:redis => Redis.new) Examples: u = User.find(1) u.r_set("key", "value") u.redis_set("key", "value") u.redis_set_key("value") u.r_get("key") u.redis_get("key") u.redis_get_key u.r_del("key") u.redis_del("key") u.redis_del_key u.r_update("key", "value") u.redis_update("key", "value") u.redis_update_key("value") ## Contributing 1. Fork it ( https://github.com/[my-github-username]/easy_redis/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_redis-0.0.2 | README.md |