Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de l'interface CacheInterface
Graphe d'héritage de CacheInterface:
ChainCache FilesystemCache NullCache ReadOnlyFilesystemCache

Fonctions membres publiques

 generateKey (string $name, string $className)
 write (string $key, string $content)
 load (string $key)
 getTimestamp (string $key)

Description détaillée

Interface implemented by cache classes.

It is highly recommended to always store templates on the filesystem to benefit from the PHP opcode cache. This interface is mostly useful if you need to implement a custom strategy for storing templates on the filesystem.

Auteur
Andrew Tch andre.nosp@m.w@no.nosp@m.op.lv

Documentation des fonctions membres

◆ generateKey()

generateKey ( string $name,
string $className )

Generates a cache key for the given template class name.

Implémenté dans ChainCache, FilesystemCache, et NullCache.

◆ getTimestamp()

getTimestamp ( string $key)

Returns the modification timestamp of a key.

Implémenté dans ChainCache, FilesystemCache, et NullCache.

◆ load()

load ( string $key)

Loads a template from the cache.

Implémenté dans ChainCache, FilesystemCache, et NullCache.

◆ write()

write ( string $key,
string $content )

Writes the compiled template to cache.

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

Implémenté dans ChainCache, FilesystemCache, NullCache, et ReadOnlyFilesystemCache.


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