mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Update] HotDataCacheStore 增加对CacheStore新增加方法的兼容;
This commit is contained in:
parent
e6c0633a5e
commit
579049b943
@ -74,6 +74,11 @@ public class HotDataCacheStore<T> implements CacheStore<T> {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public T getCache(String key, long index, long length) {
|
||||
return getCache(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exists(String key) {
|
||||
return current.exists(key) || parent.exists(key);
|
||||
@ -84,6 +89,11 @@ public class HotDataCacheStore<T> implements CacheStore<T> {
|
||||
return current.exists(key, date) || parent.exists(key, date);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long length(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean clear() {
|
||||
return current.clear();
|
||||
@ -93,4 +103,9 @@ public class HotDataCacheStore<T> implements CacheStore<T> {
|
||||
public boolean supportedPersistence() {
|
||||
return current.supportedPersistence() || parent.supportedPersistence();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportedList() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user