org.crazycake.shiro.AuthCachePrincipal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shiro-redis Show documentation
Show all versions of shiro-redis Show documentation
shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
package org.crazycake.shiro;
@Deprecated
public interface AuthCachePrincipal {
/**
* AuthCacheKey used to store authorization cache. The authorization cache key in Redis format is {cacheManagePrefix} + {realmName} + ":" + {authCacheKey}.
* For example:
* cacheManagePrefix = shiro:mycache:
* realmName = exampleRealm.authorizationCache
* authCacheKey = 123
* authorization redis key = shiro:mycache:exampleRealm.authorizationCache:123
*
* In most cases, authCacheKey should be userId or userName
*
* @Deprecated use
*
* @return
*/
@Deprecated
String getAuthCacheKey();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy