
org.xson.tangyuan.cache.apply.CacheCleanVo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tangyuan-cache Show documentation
Show all versions of tangyuan-cache Show documentation
tangyuan-cache is a tangase component in the tangyuan framework that provides technical and functional support for caching.
The newest version!
package org.xson.tangyuan.cache.apply;
import org.xson.tangyuan.TangYuanContainer;
import org.xson.tangyuan.cache.TangYuanCache;
import org.xson.tangyuan.task.AsyncTask;
public class CacheCleanVo extends CacheBase {
public CacheCleanVo(TangYuanCache cache, String key, String service) {
super(cache);
parseKey(service, key);
}
public void removeObject(final Object arg) {
TangYuanContainer.getInstance().addAsyncTask(new AsyncTask() {
@Override
public void run() {
String key = buildKey(arg);
cache.remove(key);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy