Backend
Less than 1 minute
Backend
Storage for rate limiter request logs.
interface BackendA log is the list of timestamps of the requests that were allowed for an identifier. Backends save a log as soon as it is set, so separate processes and long-running workers see each other's requests.
Methods
get
Gets the request log for an identifier, without timestamps older than the window.
public get(string $identifier): arrayReturns: array
Parameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string |
set
Saves the request log for an identifier.
public set(string $identifier, array $log): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string | |
$log | array |
remove
Removes the request log for an identifier.
public remove(string $identifier): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string |
Generated by Hazaar API Doc Generator on Thu, 22 Oct 2026 05:05:29 +0000