tokyo-cache-store

Tokyo Tyrant cache store for ActiveSupport/Rails

MIT License

Downloads
6.2K
Stars
3
Committers
1

Tokyo Cache Store

An ActiveSupport (Rails) cache-store plugin for Tokyo Tyrant.

Overview

Requirements

Tokyo Cabinet: http://1978th.net/tokyocabinet/

Tokyo Tyrant: http://1978th.net/tokyotyrant/

Ruby Bindings: sudo gem install rufus-tokyo

Installation

As a rails plugin: script/plugin install git://github.com/dim/tokyo-cache-store.git

As a GEM: sudo gem install dim-tokyo-cache-store --source=http://gems.github.com

Usage (simplified)

Create a new cache store: tchmgr create ./tmp/cache/tt_store.tch # See 'man tchmgr' for a full list of options

Start the tokyo-tyrant server: ttserver ./tmp/cache/tt_store.tch # See 'man ttserver' for a full list of options

Configure the Rails cache store (in environment.rb): config.cache_store = :tokyo_cache_store, 'localhost', 1978