We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protected void close() { lock.lock(); try { Set<Long> keys = cache.keySet(); for (long key : keys) { release(key); references.remove(key); cache.remove(key); } } finally { lock.unlock(); } }
release()方法在key的引用降到0时才会进行回源,如果key的ref没有到0不就没有回源吗,并没有在关闭的时候把缓存中所有资源回源
The text was updated successfully, but these errors were encountered:
No branches or pull requests
release()方法在key的引用降到0时才会进行回源,如果key的ref没有到0不就没有回源吗,并没有在关闭的时候把缓存中所有资源回源
The text was updated successfully, but these errors were encountered: