mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
Change-Id: I0cca627373c68d94025647f802a7fa6b419e0aad
This commit is contained in:
20
src/main/java/com/l2jserver/service/cache/CacheService.java
vendored
Normal file
20
src/main/java/com/l2jserver/service/cache/CacheService.java
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.l2jserver.service.cache;
|
||||
|
||||
import com.l2jserver.service.Service;
|
||||
|
||||
/**
|
||||
* This is an transparent Cache system. It proxies an interface implementing
|
||||
* {@link Cacheable}. Once the first call is done through the proxy, the result
|
||||
* is cached in the underlying cache engine. When the second and sucedind calls
|
||||
* are made the cache is looked up, if a match (method and arguments pair) is
|
||||
* found, this result is returned.
|
||||
* <p>
|
||||
* If you do not desire to cache an method, annotate it with
|
||||
* {@link IgnoreCaching}
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*
|
||||
*/
|
||||
public interface CacheService extends Service {
|
||||
<T extends Cacheable> T decorate(Class<T> interfaceType, T instance);
|
||||
}
|
||||
Reference in New Issue
Block a user