/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.quickserverlab.quickcached.cache; import java.util.Map; /** * * @author akshath */ public interface CacheInterface { public String getName(); public void set(String key, Object value, int objectSize, int expInSec) throws CacheException; public void update(String key, Object value, int objectSize, int expInSec) throws CacheException; public void update(String key, Object value, int objectSize) throws CacheException; public boolean touch(String key, int expInSec) throws CacheException; public Object get(String key, boolean incrementCount) throws CacheException; public Object get(String key) throws CacheException; public boolean delete(String key) throws CacheException; public void flush() throws CacheException; /** * * @return Map with key as curr_items, total_items, cmd_get, cmd_set, * get_hits, get_misses, delete_misses, delete_hits, evictions, expired */ public void saveStats(Map map); public boolean saveToDisk(); public boolean readFromDisk(); }