com.droidlogix.dbflare.a2e.IDbFlareCache Maven / Gradle / Ivy
package com.droidlogix.dbflare.a2e;
public interface IDbFlareCache
{
/**
* Set the JSON result into cache with key reference and period expiration (TTL)
* @param key
* @param value
* @param periodinMillis
*/
void set(String key, Object value, long periodinMillis);
/**
* Get the cache if exists using key
* @param key
* @return
*/
Object get(String key);
/**
* Delete the cache using key
* @param key
*/
void delete(String key);
/**
* Delete group of cache based on specified tag or keyword
* @param tag
*/
void deleteByTag(String tag);
/**
* Clear the entire cache
*/
void clear();
/**
* Get the cache size
* @return
*/
long size();
}