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

io.datakernel.memcache.client.MemcacheClient Maven / Gradle / Ivy

package io.datakernel.memcache.client;

import io.datakernel.promise.Promise;

public interface MemcacheClient {

	Promise put(K key, V value, int timeout);

	Promise get(K key, int timeout);

	default Promise put(K key, V value) {
		return put(key, value, Integer.MAX_VALUE);
	}

	default Promise get(K key) {
		return get(key, Integer.MAX_VALUE);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy