Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cacheenginememcached.php
1<?php
2namespace Bitrix\Main\Data;
3
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}