All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yixan.tools.common.cache.ChooseByKeyJedis Maven / Gradle / Ivy

There is a newer version: 3.7.1
Show newest version
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