Sha256: d6bc5fa9ff5ff9764b16d122dd31b47a12d8d8bf71fc8d41462010d79b0ef587

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

# Patella

Gem for the RailsConf 2012 talk Patella: It's Memoization into Memcached calculated in the background with Resque.
[www.slideshare.net/jdwyah/patella-railsconf-2012](http://www.slideshare.net/jdwyah/patella-railsconf-2012)

## Installation

Add this line to your application's Gemfile:

    gem 'patella'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install patella

## Usage

```ruby
  def self.my_slow_method(user_id)
    all_notifications_for(User.find(user_id))
  end
  patella_reflex :notification_unread_count, :expires_in => 3.minutes, :class_method => true
```

See the tests for more [examples](https://github.com/kbrock/patella/blob/master/test/patella_test.rb)

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added 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
patella-0.0.3 README.md
patella-0.0.1 README.md