Closed
Description
When using the XML namespace to configure a user-service
it was pretty easy to make it a caching one by adding a reference using the cache-ref
attribute and point it to a UserCache
implementation.
With Java based configuration this option is only available for the jdbcAuthentication
and not for a plain UserDetailsService
or LdapUserDetailsService
.
It would be nice if it was possible to specify a userCache
for each option available and that that would wrap the UserDetailsService
in a CachingUserDetailsService
when needed.
Related: #2837
Stackoverflow: http://stackoverflow.com/questions/40766098/springcachebasedusercache-is-null/40782952?noredirect=1#comment68816495_40782952