Skip to content

v1.3.2: Merge pull request #28 from hhravn/patch-1

Compare
Choose a tag to compare
@kfiroo kfiroo released this 12 Apr 09:05
· 101 commits to master since this release
  • 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)