From 0c8af4992cb0f7589dcafaad65ada12753c64594 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2022 21:14:33 +0300 Subject: initial --- .../aws/aws-sdk-php/src/DoctrineCacheAdapter.php | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 vendor/aws/aws-sdk-php/src/DoctrineCacheAdapter.php (limited to 'vendor/aws/aws-sdk-php/src/DoctrineCacheAdapter.php') diff --git a/vendor/aws/aws-sdk-php/src/DoctrineCacheAdapter.php b/vendor/aws/aws-sdk-php/src/DoctrineCacheAdapter.php new file mode 100644 index 0000000..132a347 --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/DoctrineCacheAdapter.php @@ -0,0 +1,55 @@ +cache = $cache; + } + + public function get($key) + { + return $this->cache->fetch($key); + } + + public function fetch($key) + { + return $this->get($key); + } + + public function set($key, $value, $ttl = 0) + { + return $this->cache->save($key, $value, $ttl); + } + + public function save($key, $value, $ttl = 0) + { + return $this->set($key, $value, $ttl); + } + + public function remove($key) + { + return $this->cache->delete($key); + } + + public function delete($key) + { + return $this->remove($key); + } + + public function contains($key) + { + return $this->cache->contains($key); + } + + public function getStats() + { + return $this->cache->getStats(); + } +} -- cgit v1.2.3