平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 rivejä
657 B

  1. //
  2. namespace SafeCampus.Cache;
  3. /// <summary>
  4. /// Redis常量
  5. /// </summary>
  6. public class CacheConst
  7. {
  8. /// <summary>
  9. /// Redis Key前缀(可删除)
  10. /// </summary>
  11. public const string CACHE_PREFIX_WEB = "SafeCampusWeb:";
  12. /// <summary>
  13. /// Redis Key前缀(需要持久化,不随系统重启删除)
  14. /// </summary>
  15. public const string CACHE_PREFIX = "SafeCampus:";
  16. /// <summary>
  17. /// Redis Hash类型
  18. /// </summary>
  19. public const string CACHE_HASH = "Hash";
  20. /// <summary>
  21. /// 用户Token缓存Key
  22. /// </summary>
  23. public const string CACHE_USER_TOKEN = CACHE_PREFIX + "UserToken";
  24. }