Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add support for Amazon ElastiCache
  • Loading branch information
wa0x6e committed Aug 27, 2013
1 parent 2b20ddc commit c7dacb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Cake/Cache/Engine/MemcachedEngine.php
Expand Up @@ -117,6 +117,11 @@ protected function _setOptions() {
$this->_Memcached->setOption(Memcached::OPT_SERIALIZER, Memcached::SERIALIZER_IGBINARY);
}

// Check for Amazon ElastiCache instance
if (defined('Memcached::OPT_CLIENT_MODE') && defined('Memcached::DYNAMIC_CLIENT_MODE')) {
$this->_Memcached->setOption(Memcached::OPT_CLIENT_MODE, Memcached::DYNAMIC_CLIENT_MODE);
}

$this->_Memcached->setOption(Memcached::OPT_COMPRESSION, (bool)$this->settings['compress']);
}

Expand Down

0 comments on commit c7dacb0

Please sign in to comment.