summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/CacheInterface.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/CacheInterface.php
initial
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/CacheInterface.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/CacheInterface.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/CacheInterface.php b/vendor/aws/aws-sdk-php/src/CacheInterface.php
new file mode 100644
index 0000000..e77f18b
--- /dev/null
+++ b/vendor/aws/aws-sdk-php/src/CacheInterface.php
@@ -0,0 +1,34 @@
+<?php
+namespace Aws;
+
+/**
+ * Represents a simple cache interface.
+ */
+interface CacheInterface
+{
+ /**
+ * Get a cache item by key.
+ *
+ * @param string $key Key to retrieve.
+ *
+ * @return mixed|null Returns the value or null if not found.
+ */
+ public function get($key);
+
+ /**
+ * Set a cache key value.
+ *
+ * @param string $key Key to set
+ * @param mixed $value Value to set.
+ * @param int $ttl Number of seconds the item is allowed to live. Set
+ * to 0 to allow an unlimited lifetime.
+ */
+ public function set($key, $value, $ttl = 0);
+
+ /**
+ * Remove a cache key.
+ *
+ * @param string $key Key to remove.
+ */
+ public function remove($key);
+}