Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/cache/PhutilKeyValueCacheProxy.php
12241 views
1
<?php
2
3
abstract class PhutilKeyValueCacheProxy extends PhutilKeyValueCache {
4
5
private $proxy;
6
7
final public function __construct(PhutilKeyValueCache $proxy) {
8
$this->proxy = $proxy;
9
}
10
11
final protected function getProxy() {
12
return $this->proxy;
13
}
14
15
public function isAvailable() {
16
return $this->getProxy()->isAvailable();
17
}
18
19
20
public function getKeys(array $keys) {
21
return $this->getProxy()->getKeys($keys);
22
}
23
24
25
public function setKeys(array $keys, $ttl = null) {
26
return $this->getProxy()->setKeys($keys, $ttl);
27
}
28
29
30
public function deleteKeys(array $keys) {
31
return $this->getProxy()->deleteKeys($keys);
32
}
33
34
35
public function destroyCache() {
36
return $this->getProxy()->destroyCache();
37
}
38
39
public function __call($method, array $arguments) {
40
return call_user_func_array(
41
array($this->getProxy(), $method),
42
$arguments);
43
}
44
45
}
46
47