PHP Class PrivateBin\Persistence\PurgeLimiter

Handles purge limiting, so purging is not triggered too frequently.
Inheritance: extends AbstractPersistence
Afficher le fichier Open project: privatebin/privatebin Class Usage Examples

Méthodes publiques

Méthode Description
canPurge ( ) : boolean check if the purge can be performed
setConfiguration ( Configuration $conf ) : void set configuration options of the traffic limiter
setLimit ( integer $limit ) : void set the time limit in seconds

Method Details

canPurge() public static méthode

check if the purge can be performed
public static canPurge ( ) : boolean
Résultat boolean

setConfiguration() public static méthode

set configuration options of the traffic limiter
public static setConfiguration ( Configuration $conf ) : void
$conf PrivateBin\Configuration
Résultat void

setLimit() public static méthode

set the time limit in seconds
public static setLimit ( integer $limit ) : void
$limit integer
Résultat void