redis.clients.jedis.MultiKeyCommands Java Examples
The following examples show how to use
redis.clients.jedis.MultiKeyCommands.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MGet.java From solr-redis with Apache License 2.0 | 5 votes |
@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)); }
Example #2
Source File: SUnion.java From solr-redis with Apache License 2.0 | 5 votes |
@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)); }
Example #3
Source File: SDiff.java From solr-redis with Apache License 2.0 | 5 votes |
@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)); }
Example #4
Source File: Keys.java From solr-redis with Apache License 2.0 | 5 votes |
@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)); }
Example #5
Source File: SInter.java From solr-redis with Apache License 2.0 | 5 votes |
@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)); }
Example #6
Source File: JedisProviderFactory.java From azeroth with Apache License 2.0 | 4 votes |
public static MultiKeyCommands getMultiKeyCommands(String groupName) { return (MultiKeyCommands) getJedisProvider(groupName).get(); }
Example #7
Source File: JedisProviderFactory.java From jeesuite-libs with Apache License 2.0 | 4 votes |
public static MultiKeyCommands getMultiKeyCommands(String groupName) { return (MultiKeyCommands) getJedisProvider(groupName).get(); }