protected function uncacheClassName($className, SegmentHandler $handler)
 {
     $handler->drop();
     $dao = ClassUtils::callStaticMethod($className . '::dao');
     /* @var $dao StorableDAO */
     return Cache::worker($dao)->uncacheByQuery($dao->makeSelectHead());
 }
Ejemplo n.º 2
0
 protected function gentlyGetByKey($key)
 {
     if ($this->handler->ping($this->keyToInt($key))) {
         return Cache::me()->mark($this->className)->get($key);
     } else {
         Cache::me()->mark($this->className)->delete($key);
         return null;
     }
 }