PurgeLimiter
extends AbstractPersistence
in package
PurgeLimiter
Handles purge limiting, so purging is not triggered too frequently.
Table of Contents
Properties
- $_store : AbstractData
- data storage to use to persist something
- $_limit : int
- time limit in seconds, defaults to 300s
Methods
- canPurge() : bool
- check if the purge can be performed
- setConfiguration() : mixed
- set configuration options of the traffic limiter
- setLimit() : mixed
- set the time limit in seconds
- setStore() : mixed
- set the path
Properties
$_store
data storage to use to persist something
protected
static AbstractData
$_store
Tags
$_limit
time limit in seconds, defaults to 300s
private
static int
$_limit
= 300
Tags
Methods
canPurge()
check if the purge can be performed
public
static canPurge() : bool
Tags
Return values
boolsetConfiguration()
set configuration options of the traffic limiter
public
static setConfiguration(Configuration $conf) : mixed
Parameters
- $conf : Configuration
Tags
setLimit()
set the time limit in seconds
public
static setLimit(int $limit) : mixed
Parameters
- $limit : int
Tags
setStore()
set the path
public
static setStore(AbstractData $store) : mixed
Parameters
- $store : AbstractData