SQLiteCache
SQLiteCache is a gem to allow you cache slow operations in ruby code. It provides a simple API to make it easy to add caching to your ruby code.
RubyForge Project Page rubyforge.org/projects/sqlitecache/
Installing
You may get the latest stable version from Rubyforge. Source gems are also available.
$ gem install sqlitecache
Loading sqlitecache gem itself
You have installed the gem already, yeah?
require 'rubygems'
require 'sqlitecache'
Example
cache = SqliteCache('my_cache.db')
result = cache.do_cached('key') do
my_intensive_operation
end
Resources
Documentation: sqlitecache.rubyforge.org/
Contact
- Author
-
Nicholas J Humfrey
- Home Page
- License
-
Distributes under the same terms as Ruby