No commit activity in last 3 years
No release in over 3 years
Rack session store for LevelDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

rack-session-leveldb

Rack session store for LevelDB

http://github.com/migrs/rack-session-leveldb

Build Status

Installation

gem install rack-session-leveldb

Usage

Simple (db_path: ENV['TMP']/rack.session)

use Rack::Session::LevelDB

Specify DB path

use Rack::Session::LevelDB, File.dirname(__FILE__) + '/tmp/rack.session'

Set LevelDB instance

leveldb = LevelDB::DB.new(File.dirname(__FILE__) + '/db')
use Rack::Session::LevelDB, leveldb

Specify DB path with some config

use Rack::Session::LevelDB, {
  :db_path      => File.dirname(__FILE__) + '/tmp/rack.session',
  :expire_after => 600
}

Set LevelDB instance with some config

leveldb = LevelDB::DB.new(File.dirname(__FILE__) + '/db')
use Rack::Session::LevelDB, {
  :cache        => leveldb,
  :cleanup      => false,
  :expire_after => 600
}

About LevelDB

License

rack-session-leveldb is Copyright (c) 2012 Masato Igarashi(@migrs) and distributed under the MIT license.