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.9-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.8 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.8-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.8-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
jmoses-couchbase-1.3.6 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.7 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.7-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.7-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.6 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.6-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.6-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.5 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.5-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.5-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.4 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.4-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.4-x64-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.3-x86-mingw32 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.3 lib/action_dispatch/middleware/session/couchbase_store.rb
couchbase-1.3.2 lib/action_dispatch/middleware/session/couchbase_store.rb