CacheManager constructor
CacheManager(
- CacheConfig _config
Implementation
CacheManager(this._config) {
_utf8encoder = const Utf8Encoder();
if (!_config.skipDiskCache) {
_diskCacheStore = _config.diskStore ??
DiskCacheStore(_config.databasePath, _config.databaseName,
_config.encrypt, _config.decrypt);
}
if (!_config.skipMemoryCache) {
_memoryCacheStore = MemoryCacheStore(_config.maxMemoryCacheCount);
}
}