public class CacheStatic extends Object
Constructor and Description |
---|
CacheStatic() |
Modifier and Type | Method and Description |
---|---|
static redis.clients.jedis.JedisPool |
createRedisPool(String name,
String host,
int port,
int timeout,
String password,
int poolSize)
获取一个 RedisPool 连接池
|
static int |
defaultPoolSize()
获取系统自动计算的连接池的大小
|
static redis.clients.jedis.JedisPool |
getDefaultRedisPool()
获取一个 RedisPool 连接池
|
static redis.clients.jedis.JedisPool |
getRedisPool()
Deprecated.
|
static redis.clients.jedis.JedisPool |
getRedisPool(String name)
根据名称获取一个 Redis 连接池
|
public static redis.clients.jedis.JedisPool getDefaultRedisPool()
public static redis.clients.jedis.JedisPool getRedisPool(String name)
name
- Redis 连接池名称@Deprecated public static redis.clients.jedis.JedisPool getRedisPool()
public static redis.clients.jedis.JedisPool createRedisPool(String name, String host, int port, int timeout, String password, int poolSize)
name
- 连接池名称host
- 连接地址port
- 连接端口timeout
- 超时时间password
- redis 密码poolSize
- 池的大小public static int defaultPoolSize()
Copyright © 2020 Voovan. All rights reserved.