コード例 #1
0
 public function __construct(GenericDAO $dao)
 {
     parent::__construct($dao);
     if (($cache = Cache::me()) instanceof WatermarkedPeer) {
         $watermark = $cache->mark($this->className)->getActualWatermark();
     } else {
         $watermark = null;
     }
     $this->classKey = $this->keyToInt($watermark . $this->className);
     $this->handler = $this->spawnHandler($this->classKey);
 }
コード例 #2
0
 protected function makeQueryKey(SelectQuery $query, $suffix)
 {
     return parent::makeQueryKey($query, $suffix) . $this->getLayerId();
 }
コード例 #3
0
 public function uncacheLists()
 {
     $this->handler->drop();
     return parent::uncacheLists();
 }
コード例 #4
0
 public function __construct(GenericDAO $dao)
 {
     parent::__construct($dao);
     $this->indexKey = $this->watermark . $this->className . self::SUFFIX_INDEX;
 }