comparison vendor/symfony/http-foundation/Session/Storage/Handler/MemcacheSessionHandler.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; 12 namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
13 13
14 @trigger_error(sprintf('The class %s is deprecated since Symfony 3.4 and will be removed in 4.0. Use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler instead.', MemcacheSessionHandler::class), E_USER_DEPRECATED);
15
14 /** 16 /**
15 * MemcacheSessionHandler. 17 * @author Drak <drak@zikula.org>
16 * 18 *
17 * @author Drak <drak@zikula.org> 19 * @deprecated since version 3.4, to be removed in 4.0. Use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler instead.
18 */ 20 */
19 class MemcacheSessionHandler implements \SessionHandlerInterface 21 class MemcacheSessionHandler implements \SessionHandlerInterface
20 { 22 {
21 /**
22 * @var \Memcache Memcache driver
23 */
24 private $memcache; 23 private $memcache;
25 24
26 /** 25 /**
27 * @var int Time to live in seconds 26 * @var int Time to live in seconds
28 */ 27 */
93 /** 92 /**
94 * {@inheritdoc} 93 * {@inheritdoc}
95 */ 94 */
96 public function destroy($sessionId) 95 public function destroy($sessionId)
97 { 96 {
98 return $this->memcache->delete($this->prefix.$sessionId); 97 $this->memcache->delete($this->prefix.$sessionId);
98
99 return true;
99 } 100 }
100 101
101 /** 102 /**
102 * {@inheritdoc} 103 * {@inheritdoc}
103 */ 104 */