基于 Guava 实现 tenant 租户数据的本地缓存
This commit is contained in:
@@ -52,14 +52,15 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService {
|
||||
});
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
public List<Long> getTenantIds() {
|
||||
return getTenantIdsCache.getUnchecked(Boolean.TRUE);
|
||||
return getTenantIdsCache.get(Boolean.TRUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
public void validTenant(Long id) {
|
||||
validTenantCache.getUnchecked(id).checkError();
|
||||
validTenantCache.get(id).checkError();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user