Commit 6f8f9387 by zhangxingmin

yd-common公共模块 -> redis工具类和redis前缀常量

parent 67d2c821
...@@ -44,5 +44,10 @@ ...@@ -44,5 +44,10 @@
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>
</dependency> </dependency>
<!-- redis 缓存操作 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
package com.yd.common.constant;
/**
* redis的key前缀常量
*/
public class RedisConstants {
/**
* 后端登录用户缓存信息redis前缀
*/
public static final String LOGIN_USER = "login:user:";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment