com\setasign\SetaFramework\SimpleCache\Fastcache\Drivers\Predis

Config

File: /SetaFramework/src/SimpleCache/Fastcache/Drivers/Predis/Config.php

Class hierarchy

  • Phpfastcache\Drivers\Predis\Config

Implements

  • \Phpfastcache\Config\ConfigurationOptionInterface
  • \Phpfastcache\Config\LockableConfigurationInterface

Summary

Properties

$autoTmpFallback

protected \Phpfastcache\Config\ConfigurationOption::$autoTmpFallback = false

$cacheSlamsTimeout

protected \Phpfastcache\Config\ConfigurationOption::$cacheSlamsTimeout = 15

$database

protected \Phpfastcache\Drivers\Predis\Config::$database = 0

$defaultFileNameHashFunction

protected string|callable \Phpfastcache\Config\ConfigurationOption::$defaultFileNameHashFunction = 'md5'

$defaultKeyHashFunction

protected string|callable \Phpfastcache\Config\ConfigurationOption::$defaultKeyHashFunction = 'md5'

$defaultTtl

protected \Phpfastcache\Config\ConfigurationOption::$defaultTtl = 900

$host

protected \Phpfastcache\Drivers\Predis\Config::$host = '127.0.0.1'

$itemDetailedDate

protected \Phpfastcache\Config\ConfigurationOption::$itemDetailedDate = false

$optPrefix

protected \Phpfastcache\Drivers\Predis\Config::$optPrefix = ''

$password

protected \Phpfastcache\Drivers\Predis\Config::$password = ''

$path

protected \Phpfastcache\Config\ConfigurationOption::$path = ''

$persistent

protected \Phpfastcache\Drivers\Predis\Config::$persistent = false

$port

protected \Phpfastcache\Drivers\Predis\Config::$port = 6379

$predisClient

protected \Phpfastcache\Drivers\Predis\Config::$predisClient

$preventCacheSlams

protected \Phpfastcache\Config\ConfigurationOption::$preventCacheSlams = false

$scheme

protected \Phpfastcache\Drivers\Predis\Config::$scheme = 'unix'

$superGlobalAccessor

protected \Phpfastcache\Config\ConfigurationOption::$superGlobalAccessor

$timeout

protected \Phpfastcache\Drivers\Predis\Config::$timeout = 5

$useStaticItemCaching

protected \Phpfastcache\Config\ConfigurationOption::$useStaticItemCaching = true

Methods

__construct()

public \Phpfastcache\Config\ConfigurationOption::__construct (
array<string, mixed> $parameters = array ( )
)
Parameters
$parameters : array<string, mixed>
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidConfigurationException

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidTypeException

enforceLockedProperty()

protected \Phpfastcache\Config\AbstractConfigurationOption::enforceLockedProperty (
string $propertyName
): void
Parameters
$propertyName : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

getCacheSlamsTimeout()

WARNING: This method is marked as deprecated!

This method is deprecated and will be soon moved to IOConfigurationOption class, which means they will only be available for IO drivers.

public \Phpfastcache\Config\ConfigurationOption::getCacheSlamsTimeout (
void
): int

getClassName()

protected \Phpfastcache\Config\AbstractConfigurationOption::getClassName (
void
): string

getDatabase()

public \Phpfastcache\Drivers\Predis\Config::getDatabase (
void
): int

getDefaultFileNameHashFunction()

public \Phpfastcache\Config\ConfigurationOption::getDefaultFileNameHashFunction (
void
): callable|string

getDefaultKeyHashFunction()

public \Phpfastcache\Config\ConfigurationOption::getDefaultKeyHashFunction (
void
): callable|string

getDefaultSuperGlobalAccessor()

protected \Phpfastcache\Config\ConfigurationOption::getDefaultSuperGlobalAccessor (
void
): \Closure

getDefaultTtl()

public \Phpfastcache\Config\ConfigurationOption::getDefaultTtl (
void
): int

getHost()

public \Phpfastcache\Drivers\Predis\Config::getHost (
void
): string

getOptPrefix()

public \Phpfastcache\Drivers\Predis\Config::getOptPrefix (
void
): string

getPassword()

public \Phpfastcache\Drivers\Predis\Config::getPassword (
void
): string

getPath()

public \Phpfastcache\Config\ConfigurationOption::getPath (
void
): string

getPort()

public \Phpfastcache\Drivers\Predis\Config::getPort (
void
): int

getPredisClient()

public \Phpfastcache\Drivers\Predis\Config::getPredisClient (
void
): ?\Predis\Client

getPredisConfigArray()

public \Phpfastcache\Drivers\Predis\Config::getPredisConfigArray (
void
): array

getScheme()

public \Phpfastcache\Drivers\Predis\Config::getScheme (
void
): string

getSuperGlobalAccessor()

public \Phpfastcache\Config\ConfigurationOption::getSuperGlobalAccessor (
void
): object
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

getTimeout()

public \Phpfastcache\Drivers\Predis\Config::getTimeout (
void
): int

isAutoTmpFallback()

public \Phpfastcache\Config\ConfigurationOption::isAutoTmpFallback (
void
): bool

isItemDetailedDate()

public \Phpfastcache\Config\ConfigurationOption::isItemDetailedDate (
void
): bool

isLocked()

public \Phpfastcache\Config\AbstractConfigurationOption::isLocked (
void
): bool

isPersistent()

public \Phpfastcache\Drivers\Predis\Config::isPersistent (
void
): bool

isPreventCacheSlams()

WARNING: This method is marked as deprecated!

This method is deprecated and will be soon moved to IOConfigurationOption class, which means they will only be available for IO drivers.

public \Phpfastcache\Config\ConfigurationOption::isPreventCacheSlams (
void
): bool

isUseStaticItemCaching()

public \Phpfastcache\Config\ConfigurationOption::isUseStaticItemCaching (
void
): bool

isValidOption()

public \Phpfastcache\Config\ConfigurationOption::isValidOption (
string $optionName
): bool
Parameters
$optionName : string
 

isValueSerializable()

public \Phpfastcache\Config\ConfigurationOption::isValueSerializable (
mixed $val
): bool
Parameters
$val : mixed
 
Exceptions

Throws \ReflectionException

lockedBy()

public \Phpfastcache\Config\AbstractConfigurationOption::lockedBy (
void
): \Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface

setAutoTmpFallback()

public \Phpfastcache\Config\ConfigurationOption::setAutoTmpFallback (
bool $autoTmpFallback
): static
Parameters
$autoTmpFallback : bool
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setCacheSlamsTimeout()

WARNING: This method is marked as deprecated!

This method is deprecated and will be soon moved to IOConfigurationOption class, which means they will only be available for IO drivers.

public \Phpfastcache\Config\ConfigurationOption::setCacheSlamsTimeout (
int $cacheSlamsTimeout
): static
Parameters
$cacheSlamsTimeout : int
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setDatabase()

public \Phpfastcache\Drivers\Predis\Config::setDatabase (
int $database
): static
Parameters
$database : int
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setDefaultFileNameHashFunction()

public \Phpfastcache\Config\ConfigurationOption::setDefaultFileNameHashFunction (
callable|string $defaultFileNameHashFunction
): static
Parameters
$defaultFileNameHashFunction : callable|string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidConfigurationException

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setDefaultKeyHashFunction()

public \Phpfastcache\Config\ConfigurationOption::setDefaultKeyHashFunction (
callable|string $defaultKeyHashFunction
): static
Parameters
$defaultKeyHashFunction : callable|string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidConfigurationException

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setDefaultTtl()

public \Phpfastcache\Config\ConfigurationOption::setDefaultTtl (
int $defaultTtl
): static
Parameters
$defaultTtl : int
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setHost()

public \Phpfastcache\Drivers\Predis\Config::setHost (
string $host
): static
Parameters
$host : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setItemDetailedDate()

public \Phpfastcache\Config\ConfigurationOption::setItemDetailedDate (
bool $itemDetailedDate
): static
Parameters
$itemDetailedDate : bool
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setOptPrefix()

public \Phpfastcache\Drivers\Predis\Config::setOptPrefix (
string $optPrefix
): \Phpfastcache\Drivers\Predis\Config
Parameters
$optPrefix : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPassword()

public \Phpfastcache\Drivers\Predis\Config::setPassword (
string $password
): static
Parameters
$password : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPath()

public \Phpfastcache\Config\ConfigurationOption::setPath (
string $path
): static
Parameters
$path : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPersistent()

public \Phpfastcache\Drivers\Predis\Config::setPersistent (
bool $persistent
): \Phpfastcache\Drivers\Predis\Config
Parameters
$persistent : bool
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPort()

public \Phpfastcache\Drivers\Predis\Config::setPort (
int $port
): static
Parameters
$port : int
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPredisClient()

public \Phpfastcache\Drivers\Predis\Config::setPredisClient (
?\Predis\Client $predisClient = null
): \Phpfastcache\Drivers\Predis\Config
Parameters
$predisClient : ?\Predis\Client
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setPreventCacheSlams()

WARNING: This method is marked as deprecated!

This method is deprecated and will be soon moved to IOConfigurationOption class, which means they will only be available for IO drivers.

public \Phpfastcache\Config\ConfigurationOption::setPreventCacheSlams (
bool $preventCacheSlams
): static
Parameters
$preventCacheSlams : bool
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setProperty()

protected \Phpfastcache\Config\AbstractConfigurationOption::setProperty (
string $propertyName,
mixed $propertyValue
): static
Parameters
$propertyName : string
 
$propertyValue : mixed
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException

setScheme()

public \Phpfastcache\Drivers\Predis\Config::setScheme (
string $scheme
): \Phpfastcache\Drivers\Predis\Config
Parameters
$scheme : string
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidConfigurationException

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setSuperGlobalAccessor()

public \Phpfastcache\Config\ConfigurationOption::setSuperGlobalAccessor (
?object $superGlobalAccessor
): static
Parameters
$superGlobalAccessor : ?object
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setTimeout()

public \Phpfastcache\Drivers\Predis\Config::setTimeout (
int $timeout
): static
Parameters
$timeout : int
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

setUseStaticItemCaching()

public \Phpfastcache\Config\ConfigurationOption::setUseStaticItemCaching (
bool $useStaticItemCaching
): static
Parameters
$useStaticItemCaching : bool
 
Exceptions

Throws \Phpfastcache\Exceptions\PhpfastcacheLogicException

toArray()

public \Phpfastcache\Config\ConfigurationOption::toArray (
void
): array