Sha256: bd14c6a315c501d8e00546933627edebed1c23695a951b0f3142041401783fd4
Contents?: true
Size: 1.24 KB
Versions: 57
Compression:
Stored size: 1.24 KB
Contents
require 'active_support/cache' require 'action_dispatch/middleware/session/abstract_store' require 'rack/session/couchbase' require 'couchbase' module ActionDispatch module Session # 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. # class CouchbaseStore < Rack::Session::Couchbase include Compatibility include StaleSessionCheck end end end
Version data entries
57 entries across 57 versions & 2 rubygems