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
$defaultLifetime
private
int
$defaultLifetime
$defaultLockLifetime
private
int
$defaultLockLifetime
$lifetimes
private
array<string, int>
$lifetimes
= []
$lockLifetimes
private
array<string, int>
$lockLifetimes
= []
Methods
__construct()
public
__construct([int $defaultLifetime = 3600 ][, int $defaultLockLifetime = 60 ]) : mixed
Parameters
- $defaultLifetime : int = 3600
- $defaultLockLifetime : int = 60
getDefaultLifetime()
public
getDefaultLifetime() : int
Return values
intgetDefaultLockLifetime()
public
getDefaultLockLifetime() : int
Return values
intgetLifetime()
public
getLifetime(string $regionName) : int
Parameters
- $regionName : string
Return values
intgetLockLifetime()
public
getLockLifetime(string $regionName) : int
Parameters
- $regionName : string
Return values
intsetDefaultLifetime()
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