-
Notifications
You must be signed in to change notification settings - Fork 21
/
CacheInterface.php
46 lines (39 loc) · 803 Bytes
/
CacheInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace Beryllium\CacheBundle;
use Beryllium\CacheBundle\CacheClientInterface;
/**
* CacheInterface
*
* @package
* @version $id$
* @author Kevin Boyd <beryllium@beryllium.ca>
* @license See LICENSE.md
*/
interface CacheInterface
{
/**
* @param CacheClientInterface $client
*/
public function __construct(CacheClientInterface $client = null);
/**
* @param string $key
* @return mixed
*/
public function get($key);
/**
* @param string $key
* @param mixed $value
* @param int $ttl
* @return mixed
*/
public function set($key, $value, $ttl);
/**
* @param string $key
* @return mixed
*/
public function delete($key);
/**
* @return bool
*/
public function isSafe();
}