Property | Type | Description | |
---|---|---|---|
$cacheClearEnabled | boolean | Indicate if the repository cache clear is enabled. | |
$cacheDriver | string | The repository cache driver. | |
$cacheLifetime | float | integer | The repository cache lifetime. |
Method | Description | |
---|---|---|
enableCacheClear ( boolean $status = true ) | Enable repository cache clear. | |
forgetCache ( ) | Forget the repository cache. | |
getCacheDriver ( ) : string | Get the repository cache driver. | |
getCacheLifetime ( ) : float | integer | Get the repository cache lifetime. | |
isCacheClearEnabled ( ) : boolean | Determine if repository cache clear is enabled. | |
setCacheDriver ( string $cacheDriver ) | Set the repository cache driver. | |
setCacheLifetime ( float | integer $cacheLifetime ) | Set the repository cache lifetime. |
Method | Description | |
---|---|---|
cacheCallback ( string $class, string $method, array $args, Closure $closure ) : mixed | Cache given callback. | |
flushCacheKeys ( ) : array | Flush cache keys by mimicking cache tags. | |
generateCacheHash ( $args ) : string | Generate unique query hash. | |
getCacheKeys ( string $file ) : array | Get cache keys. | |
resetCachedRepository ( ) | Reset cached repository to it's defaults. | |
storeCacheKeys ( string $class, string $method, string $hash ) : void | Store cache keys by mimicking cache tags. |
public enableCacheClear ( boolean $status = true ) | ||
$status | boolean |
protected flushCacheKeys ( ) : array | ||
return | array |
protected generateCacheHash ( $args ) : string | ||
$args | ||
return | string |
public getCacheDriver ( ) : string | ||
return | string |
protected getCacheKeys ( string $file ) : array | ||
$file | string | |
return | array |
public getCacheLifetime ( ) : float | integer | ||
return | float | integer |
public isCacheClearEnabled ( ) : boolean | ||
return | boolean |
protected resetCachedRepository ( ) |
public setCacheDriver ( string $cacheDriver ) | ||
$cacheDriver | string |
public setCacheLifetime ( float | integer $cacheLifetime ) | ||
$cacheLifetime | float | integer |
protected bool $cacheClearEnabled | ||
return | boolean |
protected string $cacheDriver | ||
return | string |