Ubiquity  2.0.0
php rapid development framework
CacheManager Class Reference
+ Inheritance diagram for CacheManager:

Static Public Member Functions

static start (&$config)
 
static startProd (&$config)
 
static getCacheDirectory ()
 
static checkCache (&$config, $silent=false)
 
static getCacheDirectories (&$config, $silent=false)
 
static clearCache (&$config, $type="all")
 
static initCache (&$config, $type="all", $silent=false)
 
- Static Public Member Functions inherited from RouterCacheTrait
static getControllerCache ($isRest=false)
 
static getRouteCache ($routePath, $duration)
 
static expired ($key, $duration)
 
static isExpired ($path, $duration)
 
static setExpired ($routePath, $expired=true)
 
static setRouteCache ($routePath)
 
static addAdminRoutes ()
 
static getRoutes ()
 
static getControllerRoutes ($controllerClass, $isRest=false)
 
static addRoute ($path, $controller, $action="index", $methods=null, $name="")
 
static getControllersFiles (&$config, $silent=false)
 
static getControllers ()
 
- Static Public Member Functions inherited from ModelsCacheTrait
static createOrmModelCache ($classname)
 
static getOrmModelCache ($classname)
 
static getModelCacheKey ($classname)
 
static modelCacheExists ($classname)
 
static initModelsCache (&$config, $forChecking=false, $silent=false)
 
static getModelsFiles (&$config, $silent=false)
 
static getModels (&$config, $silent=false)
 
- Static Public Member Functions inherited from RestCacheTrait
static getRestRoutes ()
 
static getRestCache ()
 
static getRestResource ($controllerClass)
 
static getRestCacheController ($controllerClass)
 

Static Public Attributes

static $cache
 

Static Protected Member Functions

static getCacheInstance (&$config, $cacheDirectory, $postfix)
 
static _getFiles (&$config, $type, $silent=false)
 
- Static Protected Member Functions inherited from RouterCacheTrait
static _getFiles (&$config, $type, $silent=false)
 
- Static Protected Member Functions inherited from ModelsCacheTrait
static _getFiles (&$config, $type, $silent=false)
 

Static Private Member Functions

static initialGetCacheDirectory (&$config)
 
static safeMkdir ($dir)
 
static _clearCache ($cacheDirectories, $type, $typeRef)
 
static register (AnnotationManager $annotationManager)
 

Static Private Attributes

static $cacheDirectory
 

Detailed Description

Definition at line 15 of file CacheManager.php.

Member Function Documentation

◆ _clearCache()

static _clearCache (   $cacheDirectories,
  $type,
  $typeRef 
)
staticprivate

Definition at line 102 of file CacheManager.php.

◆ _getFiles()

static _getFiles ( $config,
  $type,
  $silent = false 
)
staticprotected

Definition at line 118 of file CacheManager.php.

◆ checkCache()

static checkCache ( $config,
  $silent = false 
)
static

Definition at line 66 of file CacheManager.php.

◆ clearCache()

static clearCache ( $config,
  $type = "all" 
)
static

Definition at line 94 of file CacheManager.php.

◆ getCacheDirectories()

static getCacheDirectories ( $config,
  $silent = false 
)
static

Definition at line 74 of file CacheManager.php.

◆ getCacheDirectory()

static getCacheDirectory ( )
static

Definition at line 62 of file CacheManager.php.

◆ getCacheInstance()

static getCacheInstance ( $config,
  $cacheDirectory,
  $postfix 
)
staticprotected

Definition at line 38 of file CacheManager.php.

◆ initCache()

static initCache ( $config,
  $type = "all",
  $silent = false 
)
static

Definition at line 107 of file CacheManager.php.

◆ initialGetCacheDirectory()

static initialGetCacheDirectory ( $config)
staticprivate

Definition at line 53 of file CacheManager.php.

◆ register()

static register ( AnnotationManager  $annotationManager)
staticprivate

Definition at line 126 of file CacheManager.php.

◆ safeMkdir()

static safeMkdir (   $dir)
staticprivate

Definition at line 89 of file CacheManager.php.

◆ start()

static start ( $config)
static

Definition at line 24 of file CacheManager.php.

◆ startProd()

static startProd ( $config)
static

Definition at line 32 of file CacheManager.php.

Field Documentation

◆ $cache

$cache
static

Definition at line 21 of file CacheManager.php.

◆ $cacheDirectory

$cacheDirectory
staticprivate

Definition at line 22 of file CacheManager.php.


The documentation for this class was generated from the following file: