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

net.anthavio.cache.CacheKeyProvider Maven / Gradle / Ivy

The newest version!
package net.anthavio.cache;

/**
 * This is a basically convertor
 * 
 * Usually Cache physical storage requires simple String key but applications usually use some sort of request
 * 
 * @author martin.vanek
 *
 */
public interface CacheKeyProvider {

	/**
	 * Build String key for keyObject
	 */
	public String provideKey(R request);

	public static CacheKeyProvider STRING = new CacheKeyProvider() {

		@Override
		public String provideKey(String request) {
			return request;
		}
	};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy