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

ar.com.siripo.arcache.backend.ArcacheBackendClient Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package ar.com.siripo.arcache.backend;

import java.util.concurrent.Future;

public interface ArcacheBackendClient {

	/**
	 * The expected behavior is that asyncSet returns a Future.
	 * 
	 * If the value can not be serialized IllegalArgumentException is thrown.
	 * 
	 * If the key is invalid IllegalArgumentException is thrown
	 * 
	 * @param key
	 * @param ttlSeconds time to live in seconds of the stored object
	 * @param value
	 * @return
	 */
	public Future asyncSet(String key, int ttlSeconds, Object value);

	public Future asyncGet(String key);

}