Method | Description | |
---|---|---|
__construct ( Webiny\Component\Rest\Compiler\CacheDrivers\CacheDriverInterface $cacheDriver ) | Base constructor. | |
deleteCache ( $api, $class ) | ||
getCacheContent ( $api, $class, $version ) : array | Returns the contents of an existing cache file in form of an array. | |
isCacheValid ( string $api, string $class ) : boolean | Checks if a cache file is valid. | |
writeCacheFile ( $api, $class, $version, $cacheArray ) | Save the compiled cache array. |
public __construct ( Webiny\Component\Rest\Compiler\CacheDrivers\CacheDriverInterface $cacheDriver ) | ||
$cacheDriver | Webiny\Component\Rest\Compiler\CacheDrivers\CacheDriverInterface |
public deleteCache ( $api, $class ) | ||
$api | Name of the API. | |
$class | Name of the class. |
public getCacheContent ( $api, $class, $version ) : array | ||
$api | Name of the API. | |
$class | Name of the class. | |
$version | Version of the class. | |
return | array |
public writeCacheFile ( $api, $class, $version, $cacheArray ) | ||
$api | Name of the API. | |
$class | Name of the class. | |
$version | Version of the class. | |
$cacheArray | The compiled class cache array. |