Advertisement
Guest User

Jim

a guest
Dec 27th, 2010
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. public static Link getCache(Link link) {
  2.     Jedis jedis = null;
  3.     try {
  4.       jedis = MyStaticThread.jedisPool.getResource();
  5.       String finalUrl = jedis.get(link.key);
  6.      
  7.  
  8.     } catch (Exception e) {
  9.       e.printStackTrace();
  10.       logger.error("URL THAT CAUSED CRASH: "+link.url + " - " + e.toString(), e);
  11.       throw new RuntimeException(e);
  12.     } finally {
  13.       SparrowRole.jedisPool.returnResource(jedis);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement