@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 45 lines 894 B view raw
1<?php 2 3abstract 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}