![JAR search and dependency download from the Maven repository](/logo.png)
com.holmos.cache.store.impl.LRUCacheStore Maven / Gradle / Ivy
The newest version!
package com.holmos.cache.store.impl;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import com.holmos.cache.config.CacheConfigComponent;
import com.holmos.cache.element.Element;
import com.holmos.cache.exception.CacheException;
import com.holmos.cache.outpolicy.CacheOutPolicy;
import com.holmos.cache.status.CacheStatus;
/**
* 针对LRU及其衍生的置换算法定制的缓存数据库仓库,支持基本的LRU淘汰算法,LIRS淘汰算法,LRU-K淘汰算法,2Q淘汰算法
*
* @author: 吴银龙([email protected])
* */
public class LRUCacheStore extends AbstractCacheStore{
public LRUCacheStore(CacheConfigComponent configComponent) {
super(configComponent);
}
@Override
public boolean put(Element element) throws CacheException {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean putWithWriteLock(Element element) throws CacheException {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean putWithReadLock(Element element) throws CacheException {
// TODO Auto-generated method stub
return false;
}
@Override
public void putAll(Collection elements) throws CacheException {
// TODO Auto-generated method stub
}
@Override
public Element get(Object key) {
// TODO Auto-generated method stub
return null;
}
@Override
public List getAll(Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy