io.github.xanthic.cache.api.CacheProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cache-api Show documentation
Show all versions of cache-api Show documentation
Xanthic Cache API dependency
package io.github.xanthic.cache.api;
/**
* Creates {@link Cache} instances using some backing implementation
*/
@FunctionalInterface
public interface CacheProvider {
/**
* Builds a new {@link Cache} instance according to the supplied specification
*
* @param spec The cache specification that the new instance should be configured to satisfy
* @param The type of the keys that form the cache
* @param The type of the values that are contained in the cache
* @return a new {@link Cache} instance that conforms with the supplied specification
*/
Cache build(ICacheSpec spec);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy