CachingRealm.isCachingEnabled

Returns {@code true} if caching should be used if a {@link CacheManager} has been {@link #setCacheManager(hunt.shiro.cache.CacheManager) configured}, {@code false} otherwise. <p/> The default value is {@code true} since the large majority of Realms will benefit from caching if a CacheManager has been configured. However, memory-only realms should set this value to {@code false} since they would manage account data in memory already lookups would already be as efficient as possible.

@return {@code true} if caching will be globally enabled if a {@link CacheManager} has been configured, {@code false} otherwise

class CachingRealm
bool
isCachingEnabled
()

Meta