public int size() {
            return (int) toStream(cache.iterator()).count();
        }
Removes all elements in the cache, but leaves the cache in a useable state.
support/jcache/src/main/java/org/apache/shiro/cache/jcache/JCacheManager.java