Class Core_Cache
Abstract cache
Direct known subclasses
Cache_APC
,
Cache_Eaccelerator
,
Cache_File
,
Cache_Memcache
,
Cache_Memcached
,
Cache_Phpredis
,
Cache_Static
,
Cache_XCache
,
Core_Cache_Memory
Abstract
Package: HostCMS\Core\Cache
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/cache.php
Package: HostCMS\Core\Cache
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/cache.php
Methods summary
abstract public
boolean
|
|
public
null|true|false
|
|
abstract public
mixed
|
#
get( string $key, string $cacheName = 'default', string $defaultValue = NULL )
Get data from cache |
abstract public
|
#
set( string $key, mixed $value, string $cacheName = 'default', array $tags = array() )
Set data in cache |
abstract public
|
|
abstract public
|
|
abstract public
integer
|
|
protected
|
|
protected
boolean
|
|
public static
object
|
|
protected
string
|
|
protected
string
|
|
public
array
|
|
public
string
|
|
protected
|
#
_saveTags( string $cacheName, string $actualKey, array $tags, $expire )
Save array of tags into table |
public
|
|
public
|
|
protected
|
|
public
|
Properties summary
public static
array
|
$instance
The singleton instances. |
#
array()
|
protected
|
$_config
Driver's configuration |
#
NULL
|
protected
string
|
$_format
Pack format |
#
'i*'
|
protected
integer
|
$_cleaningFrequency
Cleaning Cache Tags Frequency |
#
5000
|
public static
array
|
$aCaches
Typical cache parameters |
#
array(
'expire' => 86400,
'size' => 262144,
'active' => TRUE,
'tags' => TRUE,
'compress' => FALSE
)
|