Documentation

RegionsConfiguration
in package

Cache regions configuration

Table of Contents

Properties

$defaultLifetime  : int
$defaultLockLifetime  : int
$lifetimes  : array<string, int>
$lockLifetimes  : array<string, int>

Methods

__construct()  : mixed
getDefaultLifetime()  : int
getDefaultLockLifetime()  : int
getLifetime()  : int
getLockLifetime()  : int
setDefaultLifetime()  : void
setDefaultLockLifetime()  : void
setLifetime()  : void
setLockLifetime()  : void

Properties

Methods

__construct()

public __construct([int $defaultLifetime = 3600 ][, int $defaultLockLifetime = 60 ]) : mixed
Parameters
$defaultLifetime : int = 3600
$defaultLockLifetime : int = 60

getLifetime()

public getLifetime(string $regionName) : int
Parameters
$regionName : string
Return values
int

getLockLifetime()

public getLockLifetime(string $regionName) : int
Parameters
$regionName : string
Return values
int

setDefaultLifetime()

public setDefaultLifetime(int $defaultLifetime) : void
Parameters
$defaultLifetime : int

setDefaultLockLifetime()

public setDefaultLockLifetime(int $defaultLockLifetime) : void
Parameters
$defaultLockLifetime : int

setLifetime()

public setLifetime(string $name, int $lifetime) : void
Parameters
$name : string
$lifetime : int

setLockLifetime()

public setLockLifetime(string $name, int $lifetime) : void
Parameters
$name : string
$lifetime : int

        
On this page

Search results