Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Link getCache(Link link) {
- Jedis jedis = null;
- try {
- jedis = MyStaticThread.jedisPool.getResource();
- String finalUrl = jedis.get(link.key);
- } catch (Exception e) {
- e.printStackTrace();
- logger.error("URL THAT CAUSED CRASH: "+link.url + " - " + e.toString(), e);
- throw new RuntimeException(e);
- } finally {
- SparrowRole.jedisPool.returnResource(jedis);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement