Permalink
Browse files

增加缓存超时更新机制

  • Loading branch information...
Lenovo Lenovo
Lenovo authored and Lenovo committed Jan 12, 2019
1 parent 711552a commit 5698a09e3919d472671164277ffdb165513e02c8
Showing with 6 additions and 4 deletions.
  1. +0 −3 bin/main/.gitignore
  2. BIN bin/main/org/lyg/cache/Cache.class
  3. BIN bin/main/org/lyg/cache/CacheManager.class
  4. BIN bin/main/org/lyg/cache/DetaCache.class
  5. BIN bin/main/org/lyg/cache/DetaCacheManager.class
  6. BIN bin/main/org/lyg/cache/test.class
  7. BIN bin/main/org/lyg/cache/timeCheck.class
  8. BIN bin/main/org/lyg/common/KeyStore.class
  9. BIN bin/main/org/lyg/common/LYGPasswordDecode.class
  10. BIN bin/main/org/lyg/common/NeedLogin.class
  11. BIN bin/main/org/lyg/common/POSTREST.class
  12. BIN bin/main/org/lyg/common/RequestLimit.class
  13. BIN bin/main/org/lyg/common/WriteData.class
  14. BIN bin/main/org/lyg/common/aspects/TestAspect.class
  15. BIN bin/main/org/lyg/common/constants/DetaDBConstant.class
  16. BIN bin/main/org/lyg/common/exceptions/DetaDBException.class
  17. BIN bin/main/org/lyg/common/exceptions/ErrorCodeEnum.class
  18. BIN bin/main/org/lyg/common/exceptions/RequestLimitException.class
  19. BIN bin/main/org/lyg/common/exceptions/RestExceptionMapper.class
  20. BIN bin/main/org/lyg/common/maps/VtoV$1.class
  21. BIN bin/main/org/lyg/common/maps/VtoV$2.class
  22. BIN bin/main/org/lyg/common/maps/VtoV.class
  23. BIN bin/main/org/lyg/common/utils/DateUtil.class
  24. BIN bin/main/org/lyg/common/utils/DetaDBUtil.class
  25. BIN bin/main/org/lyg/common/utils/StringUtil.class
  26. BIN bin/main/org/lyg/common/utils/TokenUtil.class
  27. BIN bin/main/org/lyg/mainInterface/MainApplication.class
  28. BIN bin/main/org/lyg/mainInterface/SessionInterceptor.class
  29. BIN bin/main/org/lyg/mainInterface/WebmvcConfig.class
  30. BIN bin/main/org/lyg/vpc/controller/port/RestCachePort.class
  31. BIN bin/main/org/lyg/vpc/process/portImpl/RestCachePortImpl.class
  32. BIN bin/main/org/lyg/vpc/view/Branch.class
  33. BIN bin/main/org/lyg/vpc/view/Token.class
  34. BIN bin/main/org/lyg/vpc/view/Usr.class
  35. BIN bin/main/org/lyg/vpc/view/UsrFull.class
  36. BIN bin/main/org/lyg/vpc/view/UsrToken.class
  37. +1 −0 bin/main/property.proterties
  38. +5 −1 src/main/java/org/lyg/cache/DetaCacheManager.java

This file was deleted.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
port=6379
@@ -11,7 +11,11 @@ private DetaCacheManager() {
public static String putCache(String key, String value, long timeOut){
DetaCache c = new DetaCache();
c.setValue(value);
c.setTimeOut(timeOut);
if(0 == timeOut && cacheMap.containsKey(key)){
c.setTimeOut(cacheMap.get(key).getTimeOut());
}else{
c.setTimeOut(timeOut);
}
cacheMap.put(key, c);
return "success";
}

0 comments on commit 5698a09

Please sign in to comment.