Plugins - EasyCache

StarAdd to favorites

This 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.

Matt Zukowski

http://code.google.com/p/easycache/

http://easycache.googlecode.com/svn/trunk/

GPL

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?