Package freemarker.cache
Interface CacheStorageWithGetSize
- All Superinterfaces:
CacheStorage
- All Known Implementing Classes:
MruCacheStorage
,NullCacheStorage
,SoftCacheStorage
,StrongCacheStorage
A cache storage that has a
getSize()
method for returning the current number of cache entries.- Since:
- 2.3.21
-
Method Summary
Methods inherited from interface freemarker.cache.CacheStorage
clear, get, put, remove
-
Method Details
-
getSize
int getSize()Returns the current number of cache entries. This is intended to be used for monitoring. Note that depending on the implementation, the cost of this operation is not necessary trivial, although calling it a few times per minute should not be a problem.
-