diff --git a/core/Cache/ReadOnlyPeer.class.php b/core/Cache/ReadOnlyPeer.class.php new file mode 100644 index 0000000000..90cbc148fe --- /dev/null +++ b/core/Cache/ReadOnlyPeer.class.php @@ -0,0 +1,89 @@ +innerPeer = $peer; + } + + public function isAlive() + { + return $this->innerPeer->isAlive(); + } + + public function mark($className) + { + return $this->innerPeer->mark($className); + } + + public function get($key) + { + return $this->innerPeer->get($key); + } + + public function getList($indexes) + { + return $this->innerPeer->getList($indexes); + } + + public function clean() + { + throw new UnsupportedMethodException(); + } + + public function increment($key, $value) + { + throw new UnsupportedMethodException(); + } + + public function decrement($key, $value) + { + throw new UnsupportedMethodException(); + } + + public function delete($index, $time = null) + { + throw new UnsupportedMethodException(); + } + + public function append($key, $data) + { + throw new UnsupportedMethodException(); + } + + protected function store( + $method, $index, $value, $expires = Cache::EXPIRES_MINIMUM + ) + { + throw new UnsupportedMethodException(); + } + } +?>