缓存cassandra四
package com.huawei.support.cache;
import java.io.Serializable;
import java.util.Map;
import com.huawei.support.exception.ApplicationException;
/**
* 缓存操作接口.
*/
public interface ICassCache
{
/**向缓存中存放数据.
* @param aKeyArea Key
* @param aName column
* @param aSerialObj 缓存对象
* @throws ApplicationException ApplicationException
*/
void put(String aKeyArea, String aName, Serializable aSerialObj)
throws ApplicationException;
/**根据Key和column从缓存读取数据.
* @param aKeyArea Key
* @param aName column
* @return Object 缓存数据
* @throws ApplicationException ApplicationException
*/
Object get(String aKeyArea, String aName) throws ApplicationException;
/**根据Key和column从缓存读取数据,包括timestamp.
* @return Map<String, Object> 缓存数据
* key:"cache.timestamp", value:存放缓存数据时的timestamp
* key:"cache.value", value:缓存对象
*/
Map<String, Object> getResultMap(String aKeyArea, String aName)
throws ApplicationException;
/** 根据Key从缓存删除缓存数据.
*/
void remove(String aKeyArea) throws ApplicationException;
/**根据Key和column从缓存删除缓存数据.
* @throws ApplicationException ApplicationException
*/
void remove(String aKeyArea, String aName) throws ApplicationException;
}