コード例 #1
0
 /**
  *
  * @param  null|array $key
  * @return bool
  */
 public function clear($key = null)
 {
     $this->keyCache = array();
     if (is_null($key)) {
         $this->memcache->flush();
     } else {
         $keyString = $this->makeKeyString($key, true);
         $this->memcache->inc($keyString);
         $this->keyCache = array();
         $this->makeKeyString($key);
     }
     $this->keyCache = array();
     return true;
 }