this.storage = cacheStorage; isStorageConcurrent = cacheStorage instanceof ConcurrentCacheStorage && ((ConcurrentCacheStorage) cacheStorage).isConcurrent();
/** * Creates a new template cache with a custom template loader that is used * to load the templates. * @param loader the template loader to use. */ public TemplateCache(TemplateLoader loader, CacheStorage storage) { this.mainLoader = loader; this.storage = storage; if(storage == null) { throw new IllegalArgumentException("storage == null"); } isStorageConcurrent = storage instanceof ConcurrentCacheStorage && ((ConcurrentCacheStorage)storage).isConcurrent(); }
this.storage = cacheStorage; isStorageConcurrent = cacheStorage instanceof ConcurrentCacheStorage && ((ConcurrentCacheStorage) cacheStorage).isConcurrent();
this.storage = cacheStorage; isStorageConcurrent = cacheStorage instanceof ConcurrentCacheStorage && ((ConcurrentCacheStorage) cacheStorage).isConcurrent();