Cache
Less than 1 minute
Cache
Properties
public $
prefix
private string $prefix
index
private array $index
Methods
__construct
Cache rate limiter constructor.
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$options | array | the options for the cache |
shutdown
public shutdown({Array})
check
public check({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$identifier | string |
get
public get({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$identifier | string |
remove
Removes the rate limit information for the specified identifier.
public remove({Array})
Parameters
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({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$identifier | string | the identifier used for rate limiting |
Generated by Hazaar API Doc Generator