mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-13 10:42:54 +00:00
@@ -25,5 +25,40 @@ import com.l2jserver.service.Service;
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface DatabaseService extends Service {
|
||||
/**
|
||||
* Get the database object cached. Will return null if the object is not in
|
||||
* cache
|
||||
*
|
||||
* @param id
|
||||
* the object id
|
||||
* @return the cached object
|
||||
*/
|
||||
Object getCachedObject(Object id);
|
||||
|
||||
/**
|
||||
* Tests if the object is cached
|
||||
*
|
||||
* @param id
|
||||
* the object id
|
||||
* @return true if object is in cache
|
||||
*/
|
||||
boolean hasCachedObject(Object id);
|
||||
|
||||
/**
|
||||
* Adds or update the cache object
|
||||
*
|
||||
* @param key
|
||||
* the cache key
|
||||
* @param value
|
||||
* the object
|
||||
*/
|
||||
void updateCache(Object key, Object value);
|
||||
|
||||
/**
|
||||
* Removes an object from the cache
|
||||
*
|
||||
* @param key
|
||||
* the cache key
|
||||
*/
|
||||
void removeCache(Object key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user