module Rack::State::Store
Storage adapters are used by Manager
for storing object state.
Available Adapters¶ ↑
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
.