@Override
        protected boolean removeEldestEntry(Entry<K, V> eldest) {
            return size() > capacity;
        }
The cache capacity, ie max number of elements.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/SoftCache.java