public
Description: Rack based Tokyo stored (FAST!) Rails session store.
Homepage:
Clone URL: git://github.com/nofxx/tokyo_store.git
name age message
file .document Fri Jun 26 02:38:53 -0700 2009 Initial commit to tokyo_store. [nofxx]
file .gitignore Fri Jun 26 07:20:19 -0700 2009 docs & gitignore [nofxx]
file LICENSE Fri Jun 26 02:38:53 -0700 2009 Initial commit to tokyo_store. [nofxx]
file README.rdoc Sun Jul 19 14:22:28 -0700 2009 renaming things [nofxx]
file Rakefile Sun Jul 05 05:18:04 -0700 2009 fix rakefile. bump v0.1.9 [nofxx]
file VERSION Sun Jul 19 15:03:58 -0700 2009 packing 0.3.0 [nofxx]
directory benchmark/ Sun Jul 19 13:28:21 -0700 2009 add tyrant pure ruby and cabinet C [nofxx]
directory lib/ Sun Jul 19 15:03:58 -0700 2009 packing 0.3.0 [nofxx]
directory spec/ Sun Jul 19 15:03:58 -0700 2009 packing 0.3.0 [nofxx]
file tokyo_store.gemspec Sun Jul 19 15:03:58 -0700 2009 packing 0.3.0 [nofxx]
README.rdoc

TokyoStore

Rack based Tokyo stored (FAST!) Rails session store.

Code:github.com/nofxx/tokyo_store
Demo:github.com/nofxx/tokyo_webapps under rails/tokyo_store

Require

Tokyo Cabinet and/or Tyrant:tokyocabinet.sourceforge.net

Choose an adapter:

Tyrant - Pure Ruby:tokyocabinet.sourceforge.net/tyrantrubydoc
Cabinet - C Bindings:tokyocabinet.sourceforge.net/rubydoc
RufusTyrant - Rufus FFI:github.com/jmettraux/rufus-tokyo

Install

  gem install nofxx-tokyo_store

Rails (enviroment.rb)

  config.gem 'nofxx-tokyo_store', :lib => 'tokyo_store'
  ActionController::Base.session_store = Rack::Session::<ADAPTER (Tyrant, Cabinet or RufusTyrant)>

Tyrant

Start the server if you are using a Tyrant based adapter:

  ttserver data.tch

Some rake tasks: gist.github.com/147413

Have fun!

Thanks

Mikio Hirabayashi:tokyo products
John Mettraux:rufus-tokyo
Luca Guidi:redis-store

Copyright

Copyright © 2009 Marcos Piccinini. See LICENSE for details.