/**
  * 通过key向指定的value值追加值
  *
  * @param key
  * @param str
  * @return 成功返回 添加后value的长度 失败 返回 添加的 value 的长度 异常返回0L
  */
 public Long append(String key, String str) {
   ShardedJedis jedis = null;
   Long res = null;
   try {
     jedis = pool.getResource();
     res = jedis.append(key, str);
   } catch (Exception e) {
     pool.returnBrokenResource(jedis);
     e.printStackTrace();
     return 0L;
   } finally {
     returnResource(pool, jedis);
   }
   return res;
 }