@Override
    public void cleanup() {
        // MetadataMap#isEmpty also removes expired values
        this.cache.asMap().values().removeIf(MetadataMap::isEmpty);
    }
A basic implementation of {@link MetadataRegistry} using a LoadingCache.

@param <T> the type
helper/src/main/java/me/lucko/helper/metadata/AbstractMetadataRegistry.java