module

HTTPSession::StorageInterface(T)

Defines the storage backend interface used by HTTPSession::Manager.

Instance methods

[](session_id : String) : T | Nil

Fetches the storage value for session_id. Returns nil if no value exists.

Source
[]=(session_id : String, session : T) : Nil

Sets the storage value for session_id.

Source
delete(session_id : String) : Nil

Deletes the storage value for session_id.

Source
has?(session_id : String) : Bool

Returns true if session_id exists.

Source
new_session_id

Generates a new and unused session_id.

Source