Sha256: cd5642665cdd4574ebecf9e48c775559f4aed3ee40dc8dc4c3c62235d84c9e0c
Contents?: true
Size: 999 Bytes
Versions: 2
Compression:
Stored size: 999 Bytes
Contents
# Puff Puff provides Redis integration and instrumentation for Rails. ## Features * Simple integration (Put your server info in config/puff.yml) * High performance by default (hiredis C-based native driver) * Rails instrumentation (Using ActiveSupport::Notifications) ## Installation Add this line to your application's Gemfile: gem 'puff' And then execute: $ bundle Or install it yourself as: $ gem install puff ## Usage After put puff in your Gemfile, use the generator to generate default config file. ``` rails g puff:config ``` To use Redis in your Rails apps, using the singleton method: ``` irb(main):001:0> redis = Puff.redis => #<Redis client v3.0.2 for redis://localhost:6379/0> irb(main):002:0> redis.ping => "PONG" ``` ## Contributing 1. Fork it 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 new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puff-0.3.1 | README.md |
puff-0.3.0 | README.md |