Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6849 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6749 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Cache;
6
 
7
interface CacheInterface
8
{
9
 
10
    /**
11
     *
12
     * @param array $config
13
     */
14
    public static function getInstance($config);
15
 
16
 
17
    /**
18
     *
19
     * @param string $key
20
     * @param mixed $value
21
     */
22
    public function add($key, $value);
23
 
24
    /**
25
     *
26
     * @param string $key
27
     * @return boolean
28
     */
29
    public function touch($key);
30
 
31
 
32
    /**
33
     *
34
     * @param string $key
35
     * @return boolean
36
     */
37
    public function delete($key);
38
 
39
 
40
    /**
41
     *
42
     * @param string $key
43
     * @return mixed
44
     */
45
    public function get($key);
46
 
47
}
48
 
49
 
50