Class: ActionDispatch::Session::CouchbaseStore

Inherits:
Rack::Session::Couchbase show all
Includes:
Compatibility, StaleSessionCheck
Defined in:
lib/action_dispatch/middleware/session/couchbase_store.rb

Overview

This is Couchbase-powered session store for Rails applications

To use it just update your ‘config/initializers/session_store.rb` file

require 'action_dispatch/middleware/session/couchbase_store'
AppName::Application.config.session_store :couchbase_store

Or remove this file and add following line to your ‘config/application.rb`:

require 'action_dispatch/middleware/session/couchbase_store'
config.session_store :couchbase_store

You can also pass additional options:

require 'action_dispatch/middleware/session/couchbase_store'
session_options = {
  :expire_after => 5.minutes,
  :couchbase => {:bucket => "sessions", :default_format => :marshal}
}
config.session_store :couchbase_store, session_options

By default sessions will be serialized to JSON, to allow analyse them using Map/Reduce.

Constant Summary

Constants inherited from Rack::Session::Couchbase

Rack::Session::Couchbase::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Rack::Session::Couchbase

#mutex, #pool

Method Summary

Methods inherited from Rack::Session::Couchbase

#destroy_session, #generate_sid, #get_session, #initialize, #set_session, #with_lock

Constructor Details

This class inherits a constructor from Rack::Session::Couchbase