public class RedisContainer extends Object implements RedisCommandsContainer, Closeable
| 构造器和说明 |
|---|
RedisContainer(net.wicp.tams.common.redis.pool.AbsPool standalone) |
RedisContainer(redis.clients.jedis.JedisPool jedisPool) |
RedisContainer(redis.clients.jedis.JedisSentinelPool sentinelPool) |
public RedisContainer(redis.clients.jedis.JedisPool jedisPool)
public RedisContainer(redis.clients.jedis.JedisSentinelPool sentinelPool)
public RedisContainer(net.wicp.tams.common.redis.pool.AbsPool standalone)
public void open()
throws Exception
open 在接口中 RedisCommandsContainerExceptionpublic List<Object> multiGet(List<byte[]> key)
multiGet 在接口中 RedisCommandsContainerpublic byte[] get(byte[] key)
get 在接口中 RedisCommandsContainerpublic byte[] hget(byte[] key,
byte[] hashField)
hget 在接口中 RedisCommandsContainerpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023–2024. All rights reserved.