CacheAdapterInterface::set()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory Http Adapter package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\HttpAdapter\Event\Cache\Adapter;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
interface CacheAdapterInterface
18
{
19
    /**
20
     * @param string $id
21
     *
22
     * @return bool
23
     */
24
    public function has($id);
25
26
    /**
27
     * @param string $id
28
     *
29
     * @return mixed
30
     */
31
    public function get($id);
32
33
    /**
34
     * @param string $id
35
     * @param mixed  $data
36
     * @param int    $lifeTime
37
     *
38
     * @return bool
39
     */
40
    public function set($id, $data, $lifeTime = 0);
41
42
    /**
43
     * @param string $id
44
     *
45
     * @return bool
46
     */
47
    public function remove($id);
48
}
49