Urlaubsplan
Lade ...
Suche ...
Keine Treffer
Config::Cache Klassenreferenz
Klassendiagramm für Config::Cache:
Zusammengehörigkeiten von Config::Cache:

Öffentliche Attribute

string $handler = 'file'
 
string $backupHandler = 'dummy'
 
string $storePath = WRITEPATH . 'cache/'
 
string $prefix = ''
 
int $ttl = 60
 
string $reservedCharacters = '{}()/\@:'
 
array $file
 
array $memcached
 
array $redis
 
array $validHandlers
 
 $cacheQueryString = false
 

Dokumentation der Datenelemente

◆ $backupHandler

string Config::Cache::$backupHandler = 'dummy'

Backup Handler

The name of the handler that will be used in case the first one is unreachable. Often, 'file' is used here since the filesystem is always available, though that's not always practical for the app.

◆ $cacheQueryString

Config::Cache::$cacheQueryString = false

◆ $file

array Config::Cache::$file
Initialisierung:
= [
'storePath' => WRITEPATH . 'cache/',
'mode' => 0640,
]

◆ $handler

string Config::Cache::$handler = 'file'

Primary Handler

The name of the preferred handler that should be used. If for some reason it is not available, the $backupHandler will be used in its place.

◆ $memcached

array Config::Cache::$memcached
Initialisierung:
= [
'host' => '127.0.0.1',
'port' => 11211,
'weight' => 1,
'raw' => false,
]

◆ $prefix

string Config::Cache::$prefix = ''

Key Prefix

This string is added to all cache item names to help avoid collisions if you run multiple applications with the same cache engine.

◆ $redis

array Config::Cache::$redis
Initialisierung:
= [
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'timeout' => 0,
'database' => 0,
]

◆ $reservedCharacters

string Config::Cache::$reservedCharacters = '{}()/\@:'

Reserved Characters

A string of reserved characters that will not be allowed in keys or tags. Strings that violate this restriction will cause handlers to throw. Default: {}()/@:

NOTE: The default set is required for PSR-6 compliance.

◆ $storePath

string Config::Cache::$storePath = WRITEPATH . 'cache/'

Cache Directory Path

The path to where cache files should be stored, if using a file-based system.

Veraltet
Use the driver-specific variant under $file

◆ $ttl

int Config::Cache::$ttl = 60

Default TTL

The default number of seconds to save items when none is specified.

WARNING: This is not used by framework handlers where 60 seconds is hard-coded, but may be useful to projects and modules. This will replace the hard-coded value in a future release.

◆ $validHandlers

array Config::Cache::$validHandlers
Initialisierung:
= [
'dummy' => DummyHandler::class,
'file' => FileHandler::class,
'memcached' => MemcachedHandler::class,
'predis' => PredisHandler::class,
'redis' => RedisHandler::class,
'wincache' => WincacheHandler::class,
]

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: