2require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
53 public function get() {
55 if ($ilGlobalCache->isActive()) {
56 $rec = $ilGlobalCache->get($this->cache_key);
58 $rec = $this->getFromDb();
59 $ilGlobalCache->set($this->cache_key, $rec, 600);
62 $rec = $this->getFromDb();
72 protected function getFromDb() {
93 if ($this->
getMode() == self::MODE_SINGLE) {
An exception for terminatinating execution or to throw for unit testing.
Class ilGlobalCacheQueryWrapper.
setFetchType($fetch_type)
__construct($cache_key, $query, $fetch_type=self::FETCH_TYPE_OBJECT, $mode=self::MODE_SINGLE)
static getInstance($component)