class

HTTPSession::Storage::Memory(T)

Inherits HTTPSession::Storage < HTTPSession::StorageInterface < Reference < Object

Instance methods

delete(session_id : String) : Nil

Deletes the storage value for session_id.

Source
delete_expired(min : Time) : Nil

Deletes all expired storage values, i.e. which have not been touched since time.

Source
fetch(session_id : String) : Entry(T) | Nil

Fetches an entry indicated by session_id. Returns nil if no entry exists.

Source
new_session_id

Generates a new unused session_id.

This is a basic implementation

Source
put(session_id : String, entry : Entry(T)) : Nil

Sets the entry for session_id.

Source