class

Sellia::CLI::RequestStore

Inherits Reference / Object

Circular buffer for storing requests with live update support

Constants

MAX_REQUESTS = 1000

Constructors

Instance methods

add(request : StoredRequest)

Add a new request to the store and notify subscribers

Source
all

Get all stored requests

Source
clear

Clear all stored requests

Source
size

Get the number of stored requests

Source
subscribe

Subscribe to live request updates

Source
unsubscribe(ch : Channel(StoredRequest))

Unsubscribe from live updates

Source