@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)); }
@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)); }
@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)); }
@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)); }
@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)); }
public static MultiKeyCommands getMultiKeyCommands(String groupName) { return (MultiKeyCommands) getJedisProvider(groupName).get(); }