play.cache.CacheImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.cache;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* A cache implementation.
* expiration is specified in seconds
* @see play.cache.Cache
*/
public interface CacheImpl {
void set(@Nonnull String key, Object value, int expiration);
@Nullable Object get(@Nonnull String key);
void clear();
void delete(@Nonnull String key);
void stop();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy