Java 类redis.clients.jedis.MultiKeyCommands 实例源码

项目:solr-redis    文件:MGet.java   
@Override
public Map<String, Float> execute(final MultiKeyCommands client, final SolrParams params) {
  final String[] keys = ParamUtil.getStringByPrefix(params, "key");

  log.debug("Fetching MGET from Redis for key: {}", keys);

  return ResultUtil.stringIteratorToMap(client.mget(keys));
}
项目:solr-redis    文件:SUnion.java   
@Override
public Map<String, Float> execute(final MultiKeyCommands client, final SolrParams params) {
  final String[] keys = ParamUtil.getStringByPrefix(params, "key");

  log.debug("Fetching SUNION from Redis for keys: {}", keys);

  return ResultUtil.stringIteratorToMap(client.sunion(keys));
}
项目:solr-redis    文件:SDiff.java   
@Override
public Map<String, Float> execute(final MultiKeyCommands client, final SolrParams params) {
  final String[] keys = ParamUtil.getStringByPrefix(params, "key");

  log.debug("Fetching SDIFF from Redis for keys: {}", keys);

  return ResultUtil.stringIteratorToMap(client.sdiff(keys));
}
项目:solr-redis    文件:Keys.java   
@Override
public Map<String, Float> execute(final MultiKeyCommands client, final SolrParams params) {
  final String key = ParamUtil.assertGetStringByName(params, "key");

  log.debug("Fetching KEYS from Redis for key: {}", key);

  return ResultUtil.stringIteratorToMap(client.keys(key));
}
项目:solr-redis    文件:SInter.java   
@Override
public Map<String, Float> execute(final MultiKeyCommands client, final SolrParams params) {
  final String[] keys = ParamUtil.getStringByPrefix(params, "key");

  log.debug("Fetching SINTER from Redis for keys: {}", keys);

  return ResultUtil.stringIteratorToMap(client.sinter(keys));
}
项目:azeroth    文件:JedisProviderFactory.java   
public static MultiKeyCommands getMultiKeyCommands(String groupName) {
    return (MultiKeyCommands) getJedisProvider(groupName).get();
}
项目:jeesuite-libs    文件:JedisProviderFactory.java   
public static MultiKeyCommands getMultiKeyCommands(String groupName) {
    return (MultiKeyCommands) getJedisProvider(groupName).get();
}