Class: ActionDispatch::Session::CouchbaseStore
- Inherits:
-
Rack::Session::Couchbase
- Object
- Abstract::ID
- Rack::Session::Couchbase
- ActionDispatch::Session::CouchbaseStore
- 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'
= {
:expire_after => 5.minutes,
:couchbase => {:bucket => "sessions", :default_format => :marshal}
}
config.session_store :couchbase_store,
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
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