From 8154067343e7bfbeab1762532b64b4351e5fc99d Mon Sep 17 00:00:00 2001 From: yun young-jin Date: Thu, 4 Jun 2015 13:21:59 +0900 Subject: [PATCH] refs #182 : add '.' at memcache key --- framework/cache/Memcache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/cache/Memcache.php b/framework/cache/Memcache.php index 0526752d5..99f1eee5e 100644 --- a/framework/cache/Memcache.php +++ b/framework/cache/Memcache.php @@ -31,7 +31,7 @@ public function set($key, $value, $expirationDue = 0) { if (!empty($this->__namespace)) { $key = $this->getNamespaceHash() . '.' . $key; } else { - $key = $this->getNamespaceHash('global') . $key; + $key = $this->getNamespaceHash('global') . '.' .$key; } } $this->memcache->set($key, $value, 0, $expirationDue); @@ -42,7 +42,7 @@ public function get($key, $clear = false) { if (!empty($this->__namespace)) { $key = $this->getNamespaceHash() . '.' . $key; } else { - $key = $this->getNamespaceHash('global') . $key; + $key = $this->getNamespaceHash('global') . '.' .$key; } } return $this->memcache->get($key);