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

com.droidlogix.dbflare.a2e.IDbFlareCache Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy