existCache method
Checks if a cache entry exists for the given key.
Implementation
bool existCache(String key) {
switch (cacheSource) {
case CacheSource.memory:
return _cacheMemory.containsKey(key);
case CacheSource.file:
return File(
joinPaths([FinchApp.config.pathCache, "cache_$key.json"]),
).existsSync();
}
}