Documentation

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

$_limit

time limit in seconds, defaults to 300s

private static int $_limit = 300
Tags
access

private

static

Methods

canPurge()

check if the purge can be performed

public static canPurge() : bool
Tags
access

public

static
Return values
bool

setConfiguration()

set configuration options of the traffic limiter

public static setConfiguration(Configuration $conf) : mixed
Parameters
$conf : Configuration
Tags
access

public

static

setLimit()

set the time limit in seconds

public static setLimit(int $limit) : mixed
Parameters
$limit : int
Tags
access

public

static

        
On this page

Search results