spring-attic / spring-security-oauth

Support for adding OAuth1(a) and OAuth2 features (consumer and provider) for Spring web applications.
http://github.com/spring-projects/spring-security-oauth
Apache License 2.0
4.69k stars 4.04k forks source link

org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore #1952

Open shixitong opened 2 years ago

shixitong commented 2 years ago

private final ConcurrentHashMap<String, TokenExpiry> expiryMap = new ConcurrentHashMap<String, TokenExpiry>();

hi,i have a question

When to empty the expiryMap ? if not empty this map will be biggiest