package com.moon.server.entity.all; /** * Redis缓存键 * @author WWW */ public class RedisCacheKey { /** * 登录令牌键 */ public static String signTokenKey(String key) { return "sign:token:" + key; } /** * 登录用户键 */ public static String signUserKey(String key) { return "sign:user:" + key; } /** * 密码错误键 */ public static String signPwdError(String key) { return "sign:pwdError:" + key; } /** * 授权根键 */ public static String permsRootKey() { return "perms:"; } /** * 资源授权键 */ public static String permsResKey(String key) { return "perms:res:" + key; } /** * GeoServer的图层名键 */ public static String permsGeoTabKey(String key) { return "perms:geo:tab:" + key; } /** * 图层授权键 */ public static String permsLayerKey(String key) { return "perms:layer:" + key; } /** * 投影图层授权键 */ public static String permsProjectLayerKey(String key) { return "perms:projectLayer:" + key; } /** * 菜单授权键 */ public static String permsMenusKey(String key) { return "perms:menus:" + key; } /** * 权限授权键 */ public static String permsPermsKey(String key) { return "perms:perms:" + key; } /** * 权限授权实体键 */ public static String permsPermsEntityKey(String key) { return "perms:permsEntity:" + key; } /** * 代理授权实体键 */ public static String permsProxy(String key) { return "perms:proxy:" + key; } /** * 黑/白名单键 */ public static String blacklistKey(String key) { return "blacklist:" + key; } /** * 几何对象的空间参考键 */ public static String sridKey(String key) { return "geom:srid:" + key; } }