FlintRedisCacheFlintstone::set()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
namespace Suven\FlintRedis;
3
4
use Flintstone\Flintstone;
5
6
class FlintRedisCacheFlintstone implements FlintRedisCache
7
{
8
9
    private $flintstone;
10
11 6
    public function __construct($realm = 'default', $options = [])
12
    {
13 6
        $this->flintstone = new Flintstone($realm, $options);
14 6
    }
15
16 6
    public function get($key)
17
    {
18 6
        return $this->flintstone->get($key);
19
    }
20
21 3
    public function getAll()
22
    {
23 3
        return $this->flintstone->getAll();
24
    }
25
26 6
    public function getKeys()
27
    {
28 6
        return $this->flintstone->getKeys();
29
    }
30
31 9
    public function set($key, $value)
32
    {
33 9
        return $this->flintstone->set($key, $value);
34
    }
35
36 3
    public function delete($key)
37
    {
38 3
        return $this->flintstone->delete($key);
39
    }
40
41 3
    public function flush()
42
    {
43 3
        return $this->flintstone->flush();
44
    }
45
}
46