Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe ChainCache
Graphe d'héritage de ChainCache:
CacheInterface RemovableCacheInterface

Fonctions membres publiques

 __construct (private iterable $caches,)
 generateKey (string $name, string $className)
 write (string $key, string $content)
 load (string $key)
 getTimestamp (string $key)
 remove (string $name, string $cls)

Description détaillée

Chains several caches together.

Cached items are fetched from the first cache having them in its data store. They are saved and deleted in all adapters at once.

Auteur
Quentin Devos quent.nosp@m.in@d.nosp@m.evos..nosp@m.pm

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( private iterable $caches)
Paramètres
iterable<CacheInterface>$caches The ordered list of caches used to store and fetch cached items

Documentation des fonctions membres

◆ generateKey()

generateKey ( string $name,
string $className )

Generates a cache key for the given template class name.

Implémente CacheInterface.

◆ getTimestamp()

getTimestamp ( string $key)

Returns the modification timestamp of a key.

Implémente CacheInterface.

◆ load()

load ( string $key)

Loads a template from the cache.

Implémente CacheInterface.

◆ remove()

remove ( string $name,
string $cls )

◆ write()

write ( string $key,
string $content )

Writes the compiled template to cache.

Paramètres
string$contentThe template representation as a PHP class

Implémente CacheInterface.


La documentation de cette classe a été générée à partir du fichier suivant :