equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Cache |
16 * @package Zend_Cache |
17 * @subpackage Zend_Cache_Backend |
17 * @subpackage Zend_Cache_Backend |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Libmemcached.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Cache_Backend_Interface |
25 * @see Zend_Cache_Backend_Interface |
33 |
33 |
34 |
34 |
35 /** |
35 /** |
36 * @package Zend_Cache |
36 * @package Zend_Cache |
37 * @subpackage Zend_Cache_Backend |
37 * @subpackage Zend_Cache_Backend |
38 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
40 */ |
40 */ |
41 class Zend_Cache_Backend_Libmemcached extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface |
41 class Zend_Cache_Backend_Libmemcached extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface |
42 { |
42 { |
43 /** |
43 /** |
130 $optId = constant($optConst); |
130 $optId = constant($optConst); |
131 } else { |
131 } else { |
132 $this->_log("Unknown memcached client option '{$name}' ({$optConst})"); |
132 $this->_log("Unknown memcached client option '{$name}' ({$optConst})"); |
133 } |
133 } |
134 } |
134 } |
135 if ($optId) { |
135 if (null !== $optId) { |
136 if (!$this->_memcache->setOption($optId, $value)) { |
136 if (!$this->_memcache->setOption($optId, $value)) { |
137 $this->_log("Setting memcached client option '{$optId}' failed"); |
137 $this->_log("Setting memcached client option '{$optId}' failed"); |
138 } |
138 } |
139 } |
139 } |
140 } |
140 } |