Exemplo n.º 1
0
 public function getById($id)
 {
     try {
         return parent::getById($id, Cache::EXPIRES_FOREVER);
     } catch (CachedObjectNotFoundException $e) {
         throw $e;
     } catch (ObjectNotFoundException $e) {
         $this->cacheNullById($id);
         throw $e;
     }
 }
Exemplo n.º 2
0
 public function getById($id)
 {
     return parent::getById($id, Cache::DO_NOT_CACHE);
 }