public class RedisClient extends Object implements Closeable, AutoCloseable
封装各种模式的 Redis 客户端成统一接口
Jedis 接口设计真操蛋
Modifier and Type | Class and Description |
---|---|
static class |
RedisClient.Builder
RedisClient 构造器
|
Modifier and Type | Method and Description |
---|---|
void |
close()
释放连接池
|
redis.clients.jedis.BinaryJedisCommands |
get()
获取客户端接口
|
void |
release()
释放当前 Redis 连接
|
public redis.clients.jedis.BinaryJedisCommands get()
public void release()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2018. All rights reserved.