ConfigCacheFactoryInterface
in
Interface for a ConfigCache factory. This factory creates an instance of ConfigCacheInterface and initializes the cache if necessary.
Tags
Table of Contents
- cache() : ConfigCacheInterface
- Creates a cache instance and (re-)initializes it if necessary.
Methods
cache()
Creates a cache instance and (re-)initializes it if necessary.
public
cache(string $file, callable $callable) : ConfigCacheInterface
Parameters
- $file : string
-
The absolute cache file path
- $callable : callable
-
The callable to be executed when the cache needs to be filled (i. e. is not fresh). The cache will be passed as the only parameter to this callback