Examples of srem()


Examples of redis.clients.jedis.Jedis.srem()

        return reply;
    }

    public Long srem(String member) {
        Jedis jedis = getResource();
        Long reply = jedis.srem(key(), member);
        returnResource(jedis);
        return reply;
    }

    public Set<String> smembers() {
View Full Code Here

Examples of redis.clients.jedis.Jedis.srem()

 
  public void removeMeeting(String meetingId){
    Jedis jedis = redisPool.getResource();
    try {
      jedis.del("meeting-" + meetingId);
      jedis.srem("meetings", meetingId);
    } finally {
      redisPool.returnResource(jedis);
    }
  }
 
View Full Code Here

Examples of redis.clients.jedis.Jedis.srem()

    public Set<Ack> removeAcknowledged(final String uaid, final Set<Ack> acks) {
        final Jedis jedis = jedisPool.getResource();
        try {
            for (Ack ack : acks) {
                jedis.del(ackLookupKey(ack.getChannelId()));
                jedis.srem(acksLookupKey(uaid), ack.getChannelId());
            }
            return getUnacknowledged(uaid);
        } finally {
            jedisPool.returnResource(jedis);
        }
View Full Code Here

Examples of redis.clients.jedis.Jedis.srem()

    String classNameRedisKey = getClassNameRedisKey(clazz, configName);

    Jedis jedis = getJedisPool().getResource();
    try {
     
      jedis.srem(classKeyName, configName);
      String uniqueIdText = jedis.hget(classNameRedisKey, "UniqueId");
      if (uniqueIdText != null) {
        UniqueId uniqueId = UniqueId.parse(uniqueIdText);
        byte[] uniqueIdKey = getUniqueIdKey(uniqueId);
        jedis.del(uniqueIdKey);
View Full Code Here

Examples of redis.clients.jedis.Transaction.srem()

                return false;
            }

            Transaction trans = conn.multi();
            trans.zadd("market:", price, item);
            trans.srem(inventory, itemId);
            List<Object> results = trans.exec();
            // null response indicates that the transaction was aborted due to
            // the watched key changing.
            if (results == null){
                continue;
View Full Code Here

Examples of redis.clients.jedis.Transaction.srem()

            final String endpointToken = channel.getEndpointToken();
            final Transaction tx = jedis.multi();
            tx.del(endpointToken);
            tx.del(chidLookupKey(channelId));
            tx.del(tokenLookupKey(endpointToken));
            tx.srem(uaidLookupKey(channel.getUAID()), channelId);
            tx.exec();
        } catch (final ChannelNotFoundException e) {
            logger.debug("ChannelId [" + channelId + "] was not found");
        } finally {
            jedisPool.returnResource(jedis);
View Full Code Here

Examples of redis.clients.jedis.Transaction.srem()

        try {
            Transaction transaction = jedis.multi();

            transaction.del(attributeKey.getBytes(RedisSessionKeys.getEncoding()));

            transaction.srem(attrsListKey, name);

            if (!disableListeners) {
                transaction.publish(RedisSessionKeys.getSessionChannel(), message);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.