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

Version Path
couchbase-1.3.15 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.15-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.15-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.14 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.14-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.14-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.13-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.13-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.13 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.12 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.12-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.12-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.11-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.11-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.11 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.10 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.10-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.10-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.9 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.9-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb