github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

grantr / cached_associations

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

automatically cache ActiveRecord associations — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

basic has_many_cached 
grantr (author)
Sun May 11 00:40:42 -0700 2008
commit  98026eb48ba388f17d8adfbcdd11aa131b8febf8
tree    4223317a4585bda0038c38654c1b1d5fc8b37c68
parent  78387317a100239740ee7d6d84a2364272ffe30e
cached_associations /
name age
history
message
file .gitignore Loading commit data...
file MIT-LICENSE
file README
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
Automatically cache ActiveRecord associations in memcached.

class User < ActiveRecord::Base
  acts_as_cached
  belongs_to_cached :group
end

class Group < ActiveRecord::Base
  acts_as_cached
end

Instead of caching the association objects and writing expiration sweepers,
we cache the association ids and load the objects from memcached by id.

cache_fu is required (for now)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server