Code Duplication    Length = 9-10 lines in 2 locations

Redis/Predis.php 2 locations

@@ 40-49 (lines=10) @@
37
        return $this->predis->hIncrBy($key, $hashKey, $value);
38
    }
39
40
    public function set($key, $value)
41
    {
42
        /** @var Status $result */
43
        $result = $this->predis->set($key, $value);
44
        if ('OK' == $result->getPayload()) {
45
            return true;
46
        }
47
48
        return false;
49
    }
50
51
    public function get($key)
52
    {
@@ 64-72 (lines=9) @@
61
        return $result;
62
    }
63
64
    public function setEx($key, $seconds, $value)
65
    {
66
        $result = $this->predis->setex($key, $seconds, $value);
67
        if ('OK' == $result->getPayload()) {
68
            return true;
69
        }
70
71
        return false;
72
    }
73
74
    public function lRem($lKey, $count, $value)
75
    {