Browse Source

rename cache keys.

deason 2 years ago
parent
commit
974ff95e08

+ 1 - 1
examcloud-starters/examcloud-crypto-starter/src/test/java/cn/com/qmth/examcloud/starters/crypto/test/CryptoTest.java

@@ -44,7 +44,7 @@ public class CryptoTest {
 
     private void cryptoGroupTest(String str) {
         String key = CryptoHelper.buildKey(
-                new FieldPair("key", "U_S_0_2"),
+                new FieldPair("key", "$SS:S_0_2"),
                 new FieldPair("token", "98ede2940ab84f448cb39568298b3d06"),
                 new FieldPair("timestamp", "1650364516803")
         );

+ 16 - 1
examcloud-web/src/main/java/cn/com/qmth/examcloud/support/CacheConstants.java

@@ -7,13 +7,18 @@ package cn.com.qmth.examcloud.support;
  */
 public interface CacheConstants {
 
-    /* #################### 会话、锁等KEY #################### */
+    /* #################### 登录会话、锁等KEY #################### */
 
     /**
      * 缓存 - 登录会话前缀:{userType}_{rootOrgId}_{userId}
      */
     String CACHE_LOGIN_SESSION = "$SS:";
 
+    /**
+     * 缓存 - APP登录会话前缀:{CACHE_LOGIN_SESSION}
+     */
+    String CACHE_APP_LOGIN_SESSION = "$APP:";
+
     /**
      * 缓存 - 锁前缀
      */
@@ -324,4 +329,14 @@ public interface CacheConstants {
      */
     String CACHE_EX_SMS = "$EX:SMS:";
 
+
+
+    /* #################### APP模块 #################### */
+
+    /**
+     * 缓存 - 请求Trace:{threadTraceID}
+     */
+    String CACHE_APP_REQ_TRACE = "$APP:REQ_TRACE:";
+
+
 }