Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
cacheenginememcached.php
1
<?php
2
namespace
Bitrix\Main\Data
;
3
4
class
CacheEngineMemcached
extends
CacheEngineMemcache
5
{
6
public
function
getConnectionName
() : string
7
{
8
return
'cache.memcached'
;
9
}
10
11
public
static
function
getConnectionClass
()
12
{
13
return
MemcachedConnection::class;
14
}
15
16
public
function
set
($key, $ttl, $value) : bool
17
{
18
$ttl =
self::getExpire
($ttl);
19
return
self::$engine->set($key, $value, $ttl);
20
}
21
22
public
function
del
($key)
23
{
24
if
(!is_array($key))
25
{
26
$key = [$key];
27
}
28
29
self::$engine->deleteMulti($key);
30
}
31
}
Bitrix\Main\Data\CacheEngineMemcache
Definition
cacheenginememcache.php:5
Bitrix\Main\Data\CacheEngineMemcache\getExpire
static getExpire($ttl)
Definition
cacheenginememcache.php:16
Bitrix\Main\Data\CacheEngineMemcached
Definition
cacheenginememcached.php:5
Bitrix\Main\Data\CacheEngineMemcached\getConnectionName
getConnectionName()
Definition
cacheenginememcached.php:6
Bitrix\Main\Data\CacheEngineMemcached\del
del($key)
Definition
cacheenginememcached.php:22
Bitrix\Main\Data\CacheEngineMemcached\getConnectionClass
static getConnectionClass()
Definition
cacheenginememcached.php:11
Bitrix\Main\Data
Definition
aliases.php:105
modules
main
lib
data
cacheenginememcached.php
Создано системой
1.10.0