From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- .../src/Guzzle/Cache/ClosureCacheAdapter.php | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 vendor/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php (limited to 'vendor/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php') diff --git a/vendor/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php b/vendor/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php new file mode 100644 index 0000000..c7a3df4 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php @@ -0,0 +1,57 @@ +callables = $callables; + } + + public function contains($id, array $options = null) + { + return call_user_func($this->callables['contains'], $id, $options); + } + + public function delete($id, array $options = null) + { + return call_user_func($this->callables['delete'], $id, $options); + } + + public function fetch($id, array $options = null) + { + return call_user_func($this->callables['fetch'], $id, $options); + } + + public function save($id, $data, $lifeTime = false, array $options = null) + { + return call_user_func($this->callables['save'], $id, $data, $lifeTime, $options); + } +} -- cgit v1.2.3-54-g00ecf