All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.xanthic.cache.api.CacheProvider Maven / Gradle / Ivy

There is a newer version: 0.6.2
Show newest version
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