hy
zhoudw
2021-12-27 46b64572601f9a18143ad63f777181f4b884396e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
namespace App\Service;
use Hyperf\Redis\Redis;
use Hyperf\Di\Annotation\Inject;
use Hyperf\Config\Annotation\Value;
 
use App\Utils\Http;
 
class TransferService extends Http
{
    /**
     * 
     * @Inject
     * @var Redis
     */
    private $redis;
 
    public function  ping()
    {
        $result=$this->redis->ping();
    }
 
    public function  setnx($strKey,$value)
    {
        $this->redis->setnx($strKey,$value);            
    }
 
    public function  set($strKey,$value)
    {
        $this->redis->set($strKey,$value);
    }
    
    public function  get($strKey)
    {
        return $this->redis->get($strKey);
    }
    
    public function  delete($strKey)
    {
        $this->redis->del($strKey);        
    }
 
    public function incrby($str_key,$value=0){
        $this->redis->incrby($str_key,$value);
    }
 
    public function incr($fd){
        return $this->redis->incr($fd);
    }
 
    public function  decr($strKey)
    {
        return $this->redis->decr($strKey);
    }
 
    public function  decrby($strKey,$num)
    {
        return $this->redis->decrby($strKey,$num);
    }
 
    public function  lSize($strKey)
    {
        return $this->redis->lSize($strKey);
    }
 
    public function  lGet($strKey,$index)
    {
        return $this->redis->lGet($strKey,$index);
    }
    
    public function  lrem($strKey,$value,$index)
    {
        return $this->redis->lrem($strKey,$value,$index);
    }
    
    public function  lPush($strKey,$value)
    {
        $this->redis->lPush($strKey,$value);        
    }
 
    public function  rPush($strKey,$value)
    {
        $this->redis->rPush($strKey,$value);        
    }
    
    public function  lPop($strKey)
    {
        return $this->redis->lPop($strKey);        
    }
 
    public function  rPop($strKey)
    {
        return $this->redis->rPop($strKey);        
    }
 
    public function  lSet($strKey,$index,$value)
    {
        return $this->redis->lSet($strKey,$index,$value);
    }
 
    public function  lrange($strKey,$index,$length)
    {
        return $this->redis->lrange($strKey,$index,$length);
    }
 
    public function  keys($strKey)
    {
        return $this->redis->keys($strKey);        
    }
}