17 private $managedCache;
25 $this->managedCache =
$app->getManagedCache();
26 $this->taggedCache =
$app->getTaggedCache();
32 public function Read($ttl, $uniqid, $table_id=
false)
34 return $this->managedCache->read($ttl, $uniqid, $table_id);
39 return $this->managedCache->getImmediate($ttl, $uniqid, $table_id);
44 public function Get($uniqid)
46 return $this->managedCache->get($uniqid);
52 $this->managedCache->set($uniqid,
$val);
57 $this->managedCache->setImmediate($uniqid,
$val);
61 public function Clean($uniqid, $table_id=
false)
63 $this->managedCache->clean($uniqid, $table_id);
69 $this->managedCache->cleanDir($table_id);
75 $this->managedCache->cleanAll();
87 return $this->managedCache->getCompCachePath($relativePath);
94 if(defined(
"BX_COMP_MANAGED_CACHE"))
96 $this->taggedCache->startTagCache($relativePath);
102 if(defined(
"BX_COMP_MANAGED_CACHE"))
104 $this->taggedCache->endTagCache();
110 if(defined(
"BX_COMP_MANAGED_CACHE"))
112 $this->taggedCache->abortTagCache();
118 if(defined(
"BX_COMP_MANAGED_CACHE"))
120 $this->taggedCache->registerTag($tag);
126 if(defined(
"BX_COMP_MANAGED_CACHE"))
128 $this->taggedCache->clearByTag($tag);
Clean($uniqid, $table_id=false)
GetCompCachePath($relativePath)
Read($ttl, $uniqid, $table_id=false)
StartTagCache($relativePath)
GetImmediate($ttl, $uniqid, $table_id=false)
SetImmediate($uniqid, $val)