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

org.xson.tangyuan.cache.apply.CacheCleanVo Maven / Gradle / Ivy

Go to download

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