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

com.base4j.j2cache.NullCache Maven / Gradle / Ivy

The newest version!
package com.base4j.j2cache;

import java.util.List;

/**
 * 空的缓存Provider
 * @author winterlau
 */
public class NullCache implements Cache {

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#get(java.lang.Object)
	 */
	@Override
	public Object get(Object key) throws CacheException {
		return null;
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#put(java.lang.Object, java.lang.Object)
	 */
	@Override
	public void put(Object key, Object value) throws CacheException {
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#update(java.lang.Object, java.lang.Object)
	 */
	@Override
	public void update(Object key, Object value) throws CacheException {
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#keys()
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public List keys() throws CacheException {
		return null;
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#remove(java.lang.Object)
	 */
	@Override
	public void evict(Object key) throws CacheException {
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#batchRemove(java.util.List)
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public void evict(List keys) throws CacheException {	
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#clear()
	 */
	@Override
	public void clear() throws CacheException {
	}

	/* (non-Javadoc)
	 * @see net.oschina.j2cache.Cache#destroy()
	 */
	@Override
	public void destroy() throws CacheException {
	}

	@Override
	public void put(Object key, Object value, Integer expireInSec) throws CacheException {
	}

	@Override
	public void update(Object key, Object value, Integer expireInSec) throws CacheException {
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy