summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers/Cache_memcached.php
diff options
context:
space:
mode:
authorJohn Bellone <jb@thunkbrightly.com>2011-08-21 18:42:03 +0200
committerJohn Bellone <jb@thunkbrightly.com>2011-08-21 18:42:03 +0200
commit090bdf6f716001ed0b388ab5860a8db5e93a2603 (patch)
tree4493f4774b990c682ede3657f6bbe883ab5bba1e /system/libraries/Cache/drivers/Cache_memcached.php
parent51758fc3e9c01f850aea5ec065f1bed51d8894df (diff)
Fixing stylish things
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_memcached.php')
-rw-r--r--system/libraries/Cache/drivers/Cache_memcached.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php
index adc6f65bc..7dc22406a 100644
--- a/system/libraries/Cache/drivers/Cache_memcached.php
+++ b/system/libraries/Cache/drivers/Cache_memcached.php
@@ -153,13 +153,16 @@ class CI_Cache_memcached extends CI_Driver {
}
}
- if (class_exists('Memcached')) {
+ if (class_exists('Memcached'))
+ {
$this->_memcached = new Memcached();
}
- else if (class_exists('Memcache')) {
+ else if (class_exists('Memcache'))
+ {
$this->_memcached = new Memcache();
}
- else {
+ else
+ {
log_message('error', 'Failed to create object for Memcached Cache; extension not loaded?');
return FALSE;
@@ -182,7 +185,8 @@ class CI_Cache_memcached extends CI_Driver {
$cache_server['weight'] = $this->_default_options['default_weight'];
}
- if (get_class($this->_memcached) == 'Memcache') {
+ if (get_class($this->_memcached) == 'Memcache')
+ {
// Third parameter is persistance and defaults to TRUE.
$this->_memcached->addServer(
$cache_server['hostname'],
@@ -191,7 +195,8 @@ class CI_Cache_memcached extends CI_Driver {
$cache_server['weight']
);
}
- else {
+ else
+ {
$this->_memcached->addServer(
$cache_server['hostname'],
$cache_server['port'],