Available Methods
- close ( )
- set ( )
- del ( )
- get ( )
- exists ( )
- expire ( )
- select ( )
- hset ( )
- rpush ( )
- publish ( )
- hget ( )
- lpush ( )
- incr ( )
- sadd ( )
- hdel ( )
- lrange ( )
- setex ( )
- keys ( )
- auth ( )
- hgetAll ( )
- flushAll ( )
- pipelined ( )
- srem ( )
- hmset ( )
- smembers ( )
- scard ( )
- setnx ( )
- connect ( )
- decr ( )
- eval ( )
- multi ( )
- sort ( )
- sismember ( )
- zrangeByScore ( )
- zadd ( )
- hvals ( )
- lpop ( )
- zrange ( )
- rpop ( )
- incrBy ( )
- hmget ( )
- hkeys ( )
- llen ( )
- watch ( )
- brpop ( )
- zrem ( )
- ttl ( )
- linsert ( )
- mget ( )
- configSet ( )
- hexists ( )
- spop ( )
- decrBy ( )
- sdiffstore ( )
- setrange ( )
- zscore ( )
- ltrim ( )
- hlen ( )
- scan ( )
- getSet ( )
- zrevrangeByScoreWithScores ( )
- append ( )
- sdiff ( )
- zcard ( )
- lindex ( )
- subscribe ( )
- rename ( )
- sinter ( )
- lrem ( )
- clientSetname ( )
- persist ( )
- sendCommand ( )
- zrangeWithScores ( )
- zscan ( )
- psubscribe ( )
- zrevrank ( )
- mset ( )
- zrevrangeByScore ( )
- slowlogGet ( )
- flushDB ( )
- sunionstore ( )
- strlen ( )
- disconnect ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.Date
- java.util.concurrent.TimeUnit
- org.junit.Before
- java.util.UUID
- java.net.URI
- java.util.Map.Entry
- org.junit.Assert
- java.util.Optional
- javax.servlet.http.HttpServletRequest
- com.google.gson.Gson
- org.springframework.context.annotation.Bean
- org.json.JSONObject
- org.apache.commons.lang3.StringUtils
- org.apache.commons.io.IOUtils
- com.google.common.collect.Lists
- org.apache.commons.lang.StringUtils
- org.springframework.util.StringUtils
- com.alibaba.fastjson.JSON
- javax.ws.rs.core.Response
- com.alibaba.fastjson.JSONObject
- redis.clients.jedis.JedisPool
- redis.clients.jedis.JedisPoolConfig
- org.apache.commons.pool2.impl.GenericObjectPoolConfig
Java Code Examples for redis.clients.jedis.Jedis#sinter()
The following examples show how to use
redis.clients.jedis.Jedis#sinter() .
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: JedisUtils.java From fw-spring-cloud with Apache License 2.0 | 5 votes |
/** * <p> * 通过key获取指定set中的交集 * </p> * * @param keys * 可以使一个string 也可以是一个string数组 * @return */ public Set<String> sinter(String... keys) { Jedis jedis = null; Set<String> res = null; try { jedis = jedisPool.getResource(); res = jedis.sinter(keys); } catch (Exception e) { log.error(e.getMessage()); } finally { returnResource(jedisPool, jedis); } return res; }
Example 2
Source File: JedisUtil.java From Project with Apache License 2.0 | 5 votes |
/** * 返回给定集合交集的成员,如果其中一个集合为不存在或为空,则返回空Set * * @param keys * @return 交集成员的集合 **/ public Set<String> sinter(String... keys) { Jedis jedis = getJedis(); Set<String> set = jedis.sinter(keys); jedis.close(); return set; }
Example 3
Source File: RedisServiceImpl.java From ace-cache with Apache License 2.0 | 5 votes |
@Override public Set<String> sinter(String... keys) { Jedis jedis = null; Set<String> res = null; try { jedis = pool.getResource(); res = jedis.sinter(keys); } catch (Exception e) { LOGGER.error(e.getMessage()); } finally { returnResource(pool, jedis); } return res; }
Example 4
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private Set<String> sinter0(Jedis j, String... keys) { return j.sinter(keys); }
Example 5
Source File: JedisUtil.java From BigData with GNU General Public License v3.0 | 3 votes |
/** * 返回给定集合交集的成员,如果其中一个集合为不存在或为空,则返回空Set * * @param String * ... keys * @return 交集成员的集合 * **/ public Set<String> sinter(String... keys) { Jedis jedis = getJedis(); Set<String> set = jedis.sinter(keys); returnJedis(jedis); return set; }