The Application Interface¶ ↑
Orchestrates the state management of an object. The API is very simple: you can get, set, and delete an object.
The application can access Manager via the Rack environment. See the key middleware option in Rack::State.new.
Remove object from store and delete associated token on client.
# File lib/rack/state.rb, line 124 def delete set false end
Return object if it exists in store, otherwise nil.
# File lib/rack/state.rb, line 114 def get object end
Save object in store and set associated token on client.
# File lib/rack/state.rb, line 119 def set(object) @object = object end