|Constructor and Description|
|Modifier and Type||Method and Description|
Removes the specified user from the cache.
public UserDetails getUserFromCache(String username)
UserDetailsfrom the cache.
User.getUsername()used to place the user in the cache
nullif the user could not be found or if the cache entry has expired
public void putUserInCache(UserDetails user)
UserDetailsin the cache. The
usernameis the key used to subsequently retrieve the
user- the fully populated
UserDetailsto place in the cache
public void removeUserFromCache(String username)
usernameis the key used to remove the user. If the user is not found, the method should simply return (not thrown an exception).
Some cache implementations may not support eviction from the cache, in which case they should provide appropriate behaviour to alter the user in either its documentation, via an exception, or through a log message.
username- to be evicted from the cache