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 at token. Raise KeyError if token exists.

read(token)

Read object at token. Return nil if token is nonexistent.

update(token, object)

Update object at token. Raise KeyError if token is nonexistent.

delete(token)

Delete object at token. 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.