Skip to content

Use snappy to compress fragments before storing them in memcache

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

fracklen/snappy_fragments

Repository files navigation

SnappyFragments

Build Status

Use snappy to compress fragment caches before storage

Installation

Add this line to your application's Gemfile:

gem 'snappy_fragments'

And then execute:

$ bundle

Or install it yourself as:

$ gem install snappy_fragments

Usage

In your view

<%= snappy_fragment "cache_key_of_your_choice", :expires_in => 24.hours do %>
  <!-- large fragment with heavy computation -->
<% end %>

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

About

Use snappy to compress fragments before storing them in memcache

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages