tech.rsqn.cacheservice.CacheService Maven / Gradle / Ivy
package tech.rsqn.cacheservice;
import tech.rsqn.cacheservice.support.CacheIteratorCallBack;
import java.io.Serializable;
public interface CacheService {
void put(String key, V value);
void putWithTTL(String key, V value, long ttlMs);
V get(String key);
int remove(String key);
boolean containsKey(String key);
boolean containsValue(V value);
void iterateThroughKeys(CacheIteratorCallBack callBack);
long count();
long clear();
}