XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
getCache ($name) | |
Static Public Member Functions | |
static | createDefaultConfig () |
Protected Member Functions | |
getDefaultPool ($originalName) | |
getDriver ($driverName, $options) | |
startPoolAccess ($name) | |
Protected Attributes | |
$poolDefs | |
$pools = array() | |
$xoops | |
Static Private Member Functions | |
static | getDefaults () |
Definition at line 30 of file CacheManager.php.
Xoops\Core\Cache\CacheManager::__construct | ( | ) |
__construct
Definition at line 57 of file CacheManager.php.
References Xoops\Core\Cache\CacheManager\$poolDefs, XoopsBaseConfig\get(), Xoops\Core\Cache\CacheManager\getDefaults(), Xoops\getInstance(), Xoops\Core\Yaml\readWrapped(), and Xoops\Core\Yaml\saveWrapped().
|
static |
Create a default configuration file, used in installation
When using Windows NTFS, PHP has a maximum path length of 260 bytes. Each key level in a Stash hierarchical key corresponds to a directory, and is normalized as an md5 hash. Also, Stash uses 2 levels for its own integrity ad locking mechanisms. The full key length used in XoopCore can reach 202 charachters.
If the combined path length would excede 260, we will try and switch to SQLite driver if it is available when running on a Windows system.
Definition at line 107 of file CacheManager.php.
References XoopsBaseConfig\get(), and Xoops\Core\Yaml\saveWrapped().
Xoops\Core\Cache\CacheManager::getCache | ( | $name | ) |
Get a cache corresponding to the specified name
string | $name | Name of cache definition |
Definition at line 137 of file CacheManager.php.
References $name, Xoops\Core\Cache\CacheManager\getDefaultPool(), and Xoops\Core\Cache\CacheManager\startPoolAccess().
|
protected |
Get an Access object based on the default pool. If it isn't set, create it. If no definition exists for default, use Stash default (Ephimeral.)
string | $originalName | originally requested pool configuration name |
Definition at line 222 of file CacheManager.php.
References $name, and Xoops\Core\Cache\CacheManager\startPoolAccess().
Referenced by Xoops\Core\Cache\CacheManager\getCache().
|
staticprivate |
getDefaults get default cache configuration used if there is no config file
Definition at line 76 of file CacheManager.php.
References XoopsBaseConfig\get().
Referenced by Xoops\Core\Cache\CacheManager\__construct().
|
protected |
getDriver
string | $driverName | short name of the driver |
array | $options | array of options for the driver |
Definition at line 201 of file CacheManager.php.
References $options, and Xoops\Core\Cache\DriverList\getDriverClass().
Referenced by Xoops\Core\Cache\CacheManager\startPoolAccess().
|
protected |
Instantiate an Access object from named configuration, including instantiating pool and driver
string | $name | name of pool configuration to start |
Definition at line 162 of file CacheManager.php.
References $name, $options, and Xoops\Core\Cache\CacheManager\getDriver().
Referenced by Xoops\Core\Cache\CacheManager\getCache(), and Xoops\Core\Cache\CacheManager\getDefaultPool().
|
protected |
Definition at line 44 of file CacheManager.php.
Referenced by Xoops\Core\Cache\CacheManager\__construct().
|
protected |
Definition at line 37 of file CacheManager.php.
|
protected |
Definition at line 52 of file CacheManager.php.