
net.anthavio.cache.CacheKeyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hatatitla Show documentation
Show all versions of hatatitla Show documentation
Compact but tweakable REST client library you have been dreaming of
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