Beispiel #1
0
 function getListByParentIdCache($parentId, $expire = 0)
 {
     $memcache = new MMCache();
     $mmckey = "Department_List_" . $this->ParentId;
     $list = $memcache->getValue($mmckey);
     if ($list) {
         return $list;
     } else {
         $data = $this->getListByParentId($parentId);
         if ($data["Data"]) {
             $memcache->setValue($mmckey, $data, $expire);
         }
         return $data;
     }
 }