← Back to home

Cache Single ActiveRecord Objects with model_cached!

January 05, 2010

I've just released a very simple Rails plugin that gives you the ability to transparently cache single active record objects using memcached.

The purpose is to cache by fields that are being validated for unique values.

Cache gets refresh after save, and expire after destroy or after a logical delete.

It is less than 100 lines of code, so don’t be shy to look at the source for full understanding.


← Back to home