summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-23 21:14:33 +0300
committerAndrew Dolgov <[email protected]>2022-11-23 21:14:33 +0300
commit0c8af4992cb0f7589dcafaad65ada12753c64594 (patch)
tree18e83d068c3e7dd2499331de977782b382279396 /vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php
initial
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php b/vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php
new file mode 100644
index 0000000..b1ac8ed
--- /dev/null
+++ b/vendor/aws/aws-sdk-php/src/Psr16CacheAdapter.php
@@ -0,0 +1,30 @@
+<?php
+namespace Aws;
+
+use Psr\SimpleCache\CacheInterface as SimpleCacheInterface;
+
+class Psr16CacheAdapter implements CacheInterface
+{
+ /** @var SimpleCacheInterface */
+ private $cache;
+
+ public function __construct(SimpleCacheInterface $cache)
+ {
+ $this->cache = $cache;
+ }
+
+ public function get($key)
+ {
+ return $this->cache->get($key);
+ }
+
+ public function set($key, $value, $ttl = 0)
+ {
+ $this->cache->set($key, $value, $ttl);
+ }
+
+ public function remove($key)
+ {
+ $this->cache->delete($key);
+ }
+}