\PrivateBin\PersistencePurgeLimiter

PurgeLimiter

Handles purge limiting, so purging is not triggered too frequently.

Summary

Methods
Properties
Constants
setStore()
setLimit()
setConfiguration()
canPurge()
No public properties found
No constants found
No protected methods found
$_store
N/A
No private methods found
$_limit
N/A

Properties

$_limit

$_limit :integer

time limit in seconds, defaults to 300s

Type

integer

Methods

setLimit()

setLimit(integer  $limit)

set the time limit in seconds

Parameters

integer $limit

setConfiguration()

setConfiguration(\PrivateBin\Configuration  $conf)

set configuration options of the traffic limiter

Parameters

\PrivateBin\Configuration $conf

canPurge()

canPurge(): boolean

check if the purge can be performed

Returns

boolean