public class JedisPoolFactory
extends java.lang.Object
JedisPool 工厂类
Jedis Factory
Email: fishinlove@163.com
created by 2019/04/26 14:12:20
| 构造器和说明 |
|---|
JedisPoolFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static redis.clients.jedis.JedisPool |
defaultPool(java.lang.String host,
int port)
获得 JedisPool 对象
Get JedisPool instance
|
static redis.clients.jedis.JedisPool |
defaultPool(java.lang.String host,
int port,
int database)
获得 JedisPool 对象
Get JedisPool instance
|
static redis.clients.jedis.JedisPool |
defaultPool(java.lang.String host,
int port,
java.lang.String password)
获得 JedisPool 对象
Get JedisPool instance
|
static redis.clients.jedis.JedisPool |
defaultPool(java.lang.String host,
int port,
java.lang.String password,
int database)
获得 JedisPool 对象
Get JedisPool instance
|
public static redis.clients.jedis.JedisPool defaultPool(java.lang.String host,
int port,
java.lang.String password,
int database)
获得 JedisPool 对象
Get JedisPool instance
host - 主机
Host
port - 端口号
Port
password - 主机密码
Password
database - 数据库编号
Database
返回构建好的 JedisPool
Return JedisPool instance
public static redis.clients.jedis.JedisPool defaultPool(java.lang.String host,
int port,
int database)
获得 JedisPool 对象
Get JedisPool instance
host - 主机
Host
port - 端口号
Port
database - 数据库编号
Database
返回构建好的 JedisPool
Return JedisPool instance
public static redis.clients.jedis.JedisPool defaultPool(java.lang.String host,
int port,
java.lang.String password)
获得 JedisPool 对象
Get JedisPool instance
host - 主机
Host
port - 端口号
Port
password - 主机密码
Password
返回构建好的 JedisPool
Return JedisPool instance
public static redis.clients.jedis.JedisPool defaultPool(java.lang.String host,
int port)
获得 JedisPool 对象
Get JedisPool instance
host - 主机
Host
port - 端口号
Port
返回构建好的 JedisPool
Return JedisPool instance
Copyright © 2019. All Rights Reserved.