module HTTPSession::StorageInterface(T)
Overview
Defines the storage backend interface used by HTTPSession::Manager
.
Direct including types
Defined in:
storage.crInstance Method Summary
-
#[](session_id : String) : T | Nil
Fetches the storage value for session_id.
-
#[]=(session_id : String, session : T) : Nil
Sets the storage value for session_id.
-
#delete(session_id : String) : Nil
Deletes the storage value for session_id.
-
#has?(session_id : String) : Bool
Returns true if session_id exists.
-
#new_session_id : String
Generates a new and unused session_id.
Instance Method Detail
abstract
def [](session_id : String) : T | Nil
#
Fetches the storage value for session_id.
Returns nil
if no value exists.