- Added
ImageCacheProvider.getCacheInfo()
to retrieve info about the cache in the following format: (Thanks @gameboyVito @youhan26)
{
files: [], // an array of all files in the cache represented by their `fs.stat()` result
size: 0 // size of cache in bytes (see example)
}
- Added
ImageCacheProvider.seedCache(local: string, url: string, options: CacheOptions): Promise
to seed the cache for a given url with a local image. Useful to avoid having to download an image when you have a local copy. (Thanks @Froelund @hhravn)