com.yixan.tools.common.cache.ChooseByKeyJedis Maven / Gradle / Ivy
package com.yixan.tools.common.cache;
import redis.clients.jedis.JedisCommands;
/**
* 根据KEY选择Jedis实例
*
* @author zhaohuihua
* @version V1.0 2018-01-31
*/
public interface ChooseByKeyJedis {
/** 返回默认Jedis实例 **/
public JedisCommands getDefaultInstance();
/** 根据KEY选择Jedis实例, 如果KEY没有对应的则返回默认实例 **/
JedisCommands getInstanceByKey(String key);
/** 根据KEY选择Jedis实例 **/
JedisCommands getInstanceByKey(String key, boolean returnDefaultIfNotFound);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy