Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс AbstractStorage
+ Граф наследования:AbstractStorage:

Открытые члены

 __construct ($cacheKey, array $configuration, array $htmlCacheOptions)
 
 write ($content, $md5)
 
 read ()
 
 exists ()
 
 delete ()
 
 deleteAll ()
 
 getMd5 ()
 
 shouldCountQuota ()
 
 getLastModified ()
 
 getSize ()
 

Защищенные данные

 $cacheKey = null
 
 $configuration = array()
 
 $htmlCacheOptions = array()
 

Подробное описание

См. определение в файле abstractstorage.php строка 11

Конструктор(ы)

◆ __construct()

__construct ( $cacheKey,
array $configuration,
array $htmlCacheOptions )
Аргументы
string$cacheKeyunique cache identifier
array$configurationstorage configuration
array$htmlCacheOptionshtml cache options

Переопределяется в FileStorage и MemcachedStorage.

См. определение в файле abstractstorage.php строка 22

Методы

◆ delete()

delete ( )
abstract

Deletes the cache Returns the number of deleted bytes

Возвращает
int|false

Переопределяется в FileStorage и MemcachedStorage.

◆ deleteAll()

deleteAll ( )
abstract

Deletes all cache data in the storage

Возвращает
bool

Переопределяется в FileStorage и MemcachedStorage.

◆ exists()

exists ( )
abstract

Returns true if the cache exists

Возвращает
bool

Переопределяется в FileStorage и MemcachedStorage.

◆ getLastModified()

getLastModified ( )
abstract

Returns the time the cache was last modified

Возвращает
int|false

Переопределяется в FileStorage и MemcachedStorage.

◆ getMd5()

getMd5 ( )
abstract

Returns md5 hash of the cache

Возвращает
string|false

Переопределяется в FileStorage и MemcachedStorage.

◆ getSize()

getSize ( )
abstract

Returns cache size

Возвращает
int|false

Переопределяется в FileStorage и MemcachedStorage.

◆ read()

read ( )
abstract

Returns the cache contents

Возвращает
string|false

Переопределяется в FileStorage и MemcachedStorage.

◆ shouldCountQuota()

shouldCountQuota ( )
abstract

Should we count a quota limit

Возвращает
bool

Переопределяется в FileStorage и MemcachedStorage.

◆ write()

write ( $content,
$md5 )
abstract

Writes the content to the storage

Аргументы
string$contentthe string that is to be written
string$md5the content hash
Возвращает
bool

Переопределяется в FileStorage и MemcachedStorage.

Данные класса

◆ $cacheKey

$cacheKey = null
protected

См. определение в файле abstractstorage.php строка 13

◆ $configuration

$configuration = array()
protected

См. определение в файле abstractstorage.php строка 14

◆ $htmlCacheOptions

$htmlCacheOptions = array()
protected

См. определение в файле abstractstorage.php строка 15