Cache
Less than 1 minute
Cache
Properties
cache
private Adapter $cacheprefix
private string $prefix = 'rate_limiter_'index
private array $indexMethods
__construct
Cache rate limiter constructor.
public __construct(array $options): voidParameters
| Parameter | Type | Description |
|---|---|---|
$options | array | the options for the cache |
shutdown
public shutdown(): voidcheck
public check(string $identifier): voidParameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string |
get
public get(string $identifier): voidParameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string |
remove
Removes the rate limit information for the specified identifier.
public remove(string $identifier): voidParameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string | the identifier for which to remove the rate limit information |
getKey
Get the key for rate limiting based on the provided identifier.
private getKey(string $identifier): stringParameters
| Parameter | Type | Description |
|---|---|---|
$identifier | string | the identifier used for rate limiting |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000