forked from fanruan/finekit
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.
26 lines
662 B
26 lines
662 B
package com.fanruan.api.cluster.state; |
|
|
|
import com.fr.store.impl.redis.accessor.FineJedis; |
|
import com.fr.store.impl.redis.accessor.StandAloneJedis; |
|
import com.fr.third.redis.clients.jedis.Jedis; |
|
|
|
/** |
|
* @author Dylan.Liu |
|
* @version 10.0 |
|
* Created by Dylan.Liu on 2019/12/3 |
|
*/ |
|
public class StandAloneJedisKit { |
|
|
|
/** |
|
* 创建单机版 Jedis Api集合 |
|
* @param jedis Jedis 资源 |
|
* @return 单机版 Jedis Api集合 |
|
*/ |
|
public static FineJedis createStandAloneJedis(Jedis jedis) { |
|
|
|
if (jedis == null) { |
|
throw new NullPointerException("jedis is null"); |
|
} |
|
return new StandAloneJedis(jedis); |
|
} |
|
}
|
|
|