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

kr.pe.kwonnam.hibernate4memcached.memcached.MemcachedAdapter Maven / Gradle / Ivy

There is a newer version: 0.7
Show newest version
package kr.pe.kwonnam.hibernate4memcached.memcached;

import java.util.Properties;

/**
 * Adapter for memcached operation.
 *
 *
 * When Hibernate Session factory closed, {@link #destroy} method will be called automatically.
 *
 * @author KwonNam Son ([email protected])
 */
public interface MemcachedAdapter {
    /**
     *  Lifecycle callback to perform initialization.
     *
     * @param properties the defined cfg properties
     */
    void init(Properties properties);

    /**
     * Lifecycle callback to perform cleanup.
     */
    void destroy();

    Object get(CacheNamespace cacheNamespace, String key);

    void set(CacheNamespace cacheNamespace, String key, Object value, int expirySeconds);

    void delete(CacheNamespace cacheNamespace, String key);

    void evictAll(CacheNamespace cacheNamespace);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy