Module: Rack::State::Store
- Defined in:
- lib/rack/state.rb
Overview
Storage adapters are used by Manager for storing object state.
Available Adapters
-
File
-
Memory
-
Postgres
-
PreparedPostgres
Adapters Must Implement CRUD Methods
- create(token, object)
-
Create
object
attoken
. Raise KeyError if token exists. - read(token)
-
Read
object
attoken
. Return nil if token is nonexistent. - update(token, object)
-
Update
object
attoken
. Raise KeyError if token is nonexistent. - delete(token)
-
Delete
object
attoken
. Return nil if token is nonexistent.
Adapters Must Conform to Specification
All adapters must pass the specifications in spec/state_store.rb to guarantee compatibility with Manager.
Defined Under Namespace
Classes: File, Memory, Postgres, PreparedPostgres