1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
memcacheconnection.php
См. документацию.
1
<?php
8
9
namespace
Bitrix\Main\Data;
10
17
class
MemcacheConnection
extends
NosqlConnection
18
{
20
protected
$configurator
;
21
22
public
function
__construct
(
array
$configuration
)
23
{
24
parent::__construct(
$configuration
);
25
26
$this->configurator =
new
Configurator\MemcacheConnectionConfigurator
($this->
getConfiguration
());
27
}
28
29
protected
function
connectInternal
()
30
{
31
$this->resource = $this->configurator->createConnection();
32
$this->
isConnected
= (bool)$this->resource;
33
}
34
35
protected
function
disconnectInternal
()
36
{
37
if
($this->
isConnected
())
38
{
39
$this->resource->close();
40
$this->resource =
null
;
41
$this->
isConnected
=
false
;
42
}
43
}
44
45
public
function
get
(
$key
)
46
{
47
if
(!$this->
isConnected
())
48
{
49
$this->
connect
();
50
}
51
52
return
$this->resource->get(
$key
);
53
}
54
55
public
function
set
(
$key
, $value)
56
{
57
if
(!$this->
isConnected
())
58
{
59
$this->
connect
();
60
}
61
62
return
$this->resource->set(
$key
, $value);
63
}
64
}
Bitrix\Main\Data\Configurator\MemcacheConnectionConfigurator
Определения
memcacheconnectionconfigurator.php:9
Bitrix\Main\Data\Connection\connect
connect()
Определения
connection.php:31
Bitrix\Main\Data\Connection\$configuration
$configuration
Определения
connection.php:21
Bitrix\Main\Data\Connection\getConfiguration
getConfiguration()
Определения
connection.php:75
Bitrix\Main\Data\Connection\isConnected
isConnected()
Определения
connection.php:62
Bitrix\Main\Data\MemcacheConnection
Определения
memcacheconnection.php:18
Bitrix\Main\Data\MemcacheConnection\connectInternal
connectInternal()
Определения
memcacheconnection.php:29
Bitrix\Main\Data\MemcacheConnection\disconnectInternal
disconnectInternal()
Определения
memcacheconnection.php:35
Bitrix\Main\Data\MemcacheConnection\$configurator
$configurator
Определения
memcacheconnection.php:20
Bitrix\Main\Data\MemcacheConnection\__construct
__construct(array $configuration)
Определения
memcacheconnection.php:22
Bitrix\Main\Data\NosqlConnection
Определения
nosqlconnection.php:12
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
bitrix
modules
main
lib
data
memcacheconnection.php
Создано системой
1.14.0