Jet\Autoloader_Cache_Backend

This is the interface defining the backend of the cache autoloader.

Method Overview

Method Importance
public isActive(
): bool;
Indicates whether the cache is active. The backend must take into account both the value of SysConf_Jet::isCacheAutoloaderEnabled() and possibly other state of affairs. For example, if Redis was used as the backedn, then Redis availability and connectivity must be evaluated.
Simply put, both the configuration and the technical ability to use the cache itself need to be evaluated.
public load(
): array|null;
Returns an associated array (map) where the key is the class name (full, including NS) and the value is the path of the corresponding script.

If the cache is not "warmed up", it returns null.
public save(
array $map
): void;
Saves the map to the cache.
public reset(
): void;
Devalues the cache.
Previous chapter
Jet\Autoloader_Cache
Next chapter
Jet\Autoloader_Cache_Backend_Files