Skip to content

Commit

Permalink
add redis
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjingchuan authored and yongjingchuan committed Sep 8, 2020
1 parent bd56557 commit b44513e
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
// return STR_SUCCESS.equals(redis.set(key, json, "NX", "EX", seconds));
// } catch (Exception e) {
// LOGGER.error("setex 出错", e);
// throw e;
// }
// return false;
// }
//
// /**
Expand Down Expand Up @@ -150,17 +150,18 @@
// * @param obj
// * @param seconds
// */
// public boolean hsetnx(String key, String field, Object obj, int seconds) {
//public boolean hsetnx(String key, String field, Object obj, int seconds) {
// try {
// String json = GsonUtils.toJson(obj);
// redis.hsetnx(key, field, json);
// redis.expire(key, seconds);
// return true;
// String json = GsonUtils.toJson(obj);
// if (INT_SUCCESS == redis.hsetnx(key, field, json)) {
// redis.expire(key, seconds);
// }
// return true;
// } catch (Exception e) {
// LOGGER.error("hsetnx 出错", e);
// LOGGER.error("hsetnx 出错", e);
// }
// return false;
// }
// }
//
// /**
// * @param key
Expand Down

0 comments on commit b44513e

Please sign in to comment.