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

play.cache.CacheImpl Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
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