SQL Cache plugin

Plugin details

SqlCaches enables the rails-application to store database-query-results in memory.

Websitehttp://rubyforge.org/projects/railssqlcache/ Repositorysvn://rubyforge.org/var/svn/railssqlcache/sql_cache Author Jens Himmelreich Tags sql, Cache LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/railssqlcache/sql_cache

1. Enhance your database-configuration wth the line

   sql_cache: true
   
     development:
       adapter: postgresql
       database: app_development
       username: user
       password: password
       host: localhost
       port: 5432
       sql_cache: true



2. specify a model as cacheable

    class Product < ActiveRecord::Base
      cacheable
      ...
    end


and the results of all database queries for this model would be cached.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago