add identity and lock
[m6w6/pq-gateway] / lib / pq / Gateway / Table / CacheInterface.php
1 <?php
2
3 namespace pq\Gateway\Table;
4
5 /**
6 * @codeCoverageIgnore
7 */
8 interface CacheInterface
9 {
10 /**
11 * Set an item
12 * @param string $key
13 * @param mixed $val
14 * @param int $ttl
15 * @return \pq\Gateway\Table\CacheInterface
16 */
17 function set($key, $val, $ttl = 0);
18
19 /**
20 * Get an item
21 * @param string $key
22 * @param bool $exists
23 * @return mixed
24 */
25 function get($key, &$exists = null);
26
27 /**
28 * Delete an item
29 * @param string $key
30 * @return \pq\Gateway\Table\CacheInterface
31 */
32 function del($key);
33 }