HTTPS clone URL
Subversion checkout URL
Clone this wiki locally
Ultra slim file-based cache.
An optional second parameter is a class to be used as the persistence layer.
By default, DrawerStore is used, but it can be replaced by any class that
provides load and save methods. For example:
Now, MyStoreClass.load(some_file) and MyStoreClass.save(@cache, some_file) will
be used for retrieving and saving the cached contents.
First, create an empty file. It will be used to store the cache:$ touch my_file $ drawer my_file
After this, you are prompted in an interactive session (IRB) where you can use the typical cache
methods, like set, get, get_multi, remove, flush_all.
You can of course use this tool to explore your existing databases, but only if they
where created with the default storage (currently DrawerStore).
Copyright © 2008 Michel Martens.
Released under the MIT license.