Debian Codegraph @

lib/3rdParty/composer/aws/aws-sdk-php/src/CacheInterface.php

raw symbols SCIP
1 <?php
2 namespace Aws;
3
4 /**
5 * Represents a simple cache interface.
6 */
7 interface CacheInterface
8 {
9 /**
10 * Get a cache item by key.
11 *
12 * @param string $key Key to retrieve.
13 *
14 * @return mixed|null Returns the value or null if not found.
15 */
16 public function get($key);
17
18 /**
19 * Set a cache key value.
20 *
21 * @param string $key Key to set
22 * @param mixed $value Value to set.
23 * @param int $ttl Number of seconds the item is allowed to live. Set
24 * to 0 to allow an unlimited lifetime.
25 */
26 public function set($key, $value, $ttl = 0);
27
28 /**
29 * Remove a cache key.
30 *
31 * @param string $key Key to remove.
32 */
33 public function remove($key);
34 }