All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.crazycake.shiro.AuthCachePrincipal Maven / Gradle / Ivy

Go to download

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!

There is a newer version: 3.3.1
Show newest version
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