示例#1
0
 public function testRedisClient()
 {
     $redisClient = new Client();
     $client = $redisClient->getClient();
     $key = "foo";
     $value = "bar";
     $redisClient->set($key, $value);
     $this->assertEquals($value, $redisClient->get($key));
 }
示例#2
0
文件: Redis.php 项目: nymc/ss-panel
 public static function getClient()
 {
     $client = new RedisClient();
     return $client->getClient();
 }