Package redis.clients.jedis

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


    byte[] uniqueIdKey = getUniqueIdKey(uniqueId);
   
    Jedis jedis = getJedisPool().getResource();
    try {
      jedis.sadd(_allClassesKey, clazz.getName());
      jedis.sadd(classKeyName, configName);
      jedis.hset(classNameRedisKey, "UniqueId", uniqueId.toString());
      jedis.hset(uniqueIdKey, DATA_NAME_AS_BYTES, objectAsBytes);
      jedis.hset(uniqueIdKey, CLASS_NAME_AS_BYTES, clazz.getName().getBytes(Charsets.UTF_8));
      jedis.hset(uniqueIdKey, ITEM_NAME_AS_BYTES, configName.getBytes(Charsets.UTF_8));
     
View Full Code Here


        // NOTE kirk 2013-06-18 -- The following call is a known performance bottleneck.
        // I spent a full day attempting almost every single way I could imagine to
        // figure out what was going on, before I gave up for the time being.
        // When we're running in a far more realistic way we need to second guess
        // it, but it is a known performance issue on large portfolio loading.
        jedis.sadd(portfolioPositionsKey, uniqueIdStrings);
       
        getJedisPool().returnResource(jedis);
      } catch (Exception e) {
        s_logger.error("Unable to store positions " + positions, e);
        getJedisPool().returnBrokenResource(jedis);
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.