mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed undefined constant
This commit is contained in:
parent
7056ccd38a
commit
881f81d01a
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,6 @@ class MemcachedEngine extends CacheEngine {
|
|||
protected $_serializers = array(
|
||||
'igbinary' => Memcached::SERIALIZER_IGBINARY,
|
||||
'json' => Memcached::SERIALIZER_JSON,
|
||||
'msgpack' => Memcached::SERIALIZER_MSGPACK,
|
||||
'php' => Memcached::SERIALIZER_PHP
|
||||
);
|
||||
|
||||
|
@ -81,6 +80,11 @@ class MemcachedEngine extends CacheEngine {
|
|||
if (!isset($settings['prefix'])) {
|
||||
$settings['prefix'] = Inflector::slug(APP_DIR) . '_';
|
||||
}
|
||||
|
||||
if (defined('Memcached::HAVE_MSGPACK') && Memcached::HAVE_MSGPACK) {
|
||||
$this->_serializers['msgpack'] = Memcached::SERIALIZER_MSGPACK;
|
||||
}
|
||||
|
||||
$settings += array(
|
||||
'engine' => 'Memcached',
|
||||
'servers' => array('127.0.0.1'),
|
||||
|
|
Loading…
Reference in a new issue