Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Cache;
6
 
7
interface CacheInterface
8
{
9
 
10
    /**
11
     *
12
     * @return bool
13
     */
14
    public function available();
15
 
16
 
17
    /**
18
     *
19
     * @param string $key
20
     * @param mixed $value
21
     */
22
    public function setItem($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 removeItem($key);
38
 
39
 
40
    /**
41
     *
42
     * @param string $key
43
     * @return mixed
44
     */
45
    public function getItem($key);
46
 
47
 
48
    /**
49
     *
50
     * @param string $key
51
     * @return boolean
52
     */
53
    public function hasItem($key);
54
 
55
}
56
 
57
 
58