EntityCache优化
This commit is contained in:
@@ -80,8 +80,8 @@ public final class EntityCache<T> {
|
||||
|
||||
private CompletableFuture<List<T>> loadFuture;
|
||||
|
||||
public EntityCache(final EntityInfo<T> info, final Cacheable c) {
|
||||
this(info, c != null ? c.interval() : 0, c != null && c.direct());
|
||||
public EntityCache(final EntityInfo<T> info, final Entity c) {
|
||||
this(info, c != null && c.cacheable() ? c.cacheInterval() : 0, c != null && c.cacheable() && c.cacheDirect());
|
||||
}
|
||||
|
||||
EntityCache(final EntityInfo<T> info, final int cacheInterval, final boolean cacheDirect) {
|
||||
|
||||
Reference in New Issue
Block a user