forked from fanruan/demo-tabledata-redis
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
495 B
28 lines
495 B
package com.fr.plugin.db.redis.core.emb.impl; |
|
|
|
import com.fr.plugin.db.redis.core.emb.Redis; |
|
import redis.clients.jedis.Jedis; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-03-21 |
|
*/ |
|
public class SimpleRedis implements Redis { |
|
|
|
private Jedis jedis; |
|
|
|
public SimpleRedis(Jedis jedis) { |
|
this.jedis = jedis; |
|
} |
|
|
|
@Override |
|
public Jedis getClient() { |
|
return jedis; |
|
} |
|
|
|
@Override |
|
public void close() { |
|
jedis.close(); |
|
} |
|
}
|
|
|