EhCacheBasedAclCache
The o.s.s.acls.model.AclCache interface declares an interface for a caching ObjectIdentity to ACL mappings, to prevent redundant (and expensive) database lookups. Spring Security ships with only one implementation of AclCache, using the third-party library Ehcache.
Ehcache is an open source, memory and disk-based caching library that is widely used in many open source and commercial Java products. As mentioned earlier in the chapter, Spring Security ships with a default implementation of ACL caching, which relies on the availability of a configured Ehcache instance, which it uses to store ACL information in preference to reading ACLs from the database.
While deep configuration of Ehcache is not something we want to cover ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access