Plugins - EasyCache
Add to favoritesThis plugin subverts Rails’ built-in fragment caching mechanism to store and retrieve any serializable data. This is especially useful when you want to store data from external sources like LDAP or Web Services, for which Rails does not currently offer an integrated caching mechanism.
For example:
foo = ['alpha', 'beta', 'delta', 'gamma']
# store foo in the cache under the keyname 'greek'
Easycache.write('greek', foo)
# retrieve the data stored under keyname 'greek'
foo = Easycache.read('greek')
# delete the data stored under keyname 'greek'
Easycache.delete('greek')
Or for extreme convenience:
data = Easycache.cache('entry_key_name') do
# return some value -- next time it will be returned from cache
end
Please see http://code.google.com/p/easycache/ for more information.
http://code.google.com/p/easycache/
http://easycache.googlecode.com/svn/trunk/
GPL
Misc. Enhancements
