2018-04-17 02:11:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the Symfony package.
|
|
|
|
*
|
|
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Symfony\Component\Cache\Simple;
|
|
|
|
|
|
|
|
use Symfony\Component\Cache\Traits\MemcachedTrait;
|
|
|
|
|
|
|
|
class MemcachedCache extends AbstractCache
|
|
|
|
{
|
|
|
|
use MemcachedTrait;
|
|
|
|
|
|
|
|
protected $maxIdLength = 250;
|
|
|
|
|
|
|
|
/**
|
2024-01-12 05:08:24 +00:00
|
|
|
* @param string $namespace
|
|
|
|
* @param int $defaultLifetime
|
2018-04-17 02:11:51 +00:00
|
|
|
*/
|
|
|
|
public function __construct(\Memcached $client, $namespace = '', $defaultLifetime = 0)
|
|
|
|
{
|
|
|
|
$this->init($client, $namespace, $defaultLifetime);
|
|
|
|
}
|
|
|
|
}
|