Skip to content

Commit d75c4b1

Browse files
authored
Merge pull request #28 from hhravn/patch-1
Update README.md
2 parents 61e8923 + 08b98ab commit d75c4b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ Will download the file from the given url and save it to the device.
9999
Returns a Promise that is resolved with the path to the underlying cached image file path if download was successful.
100100
Promise is rejected if the download or file write failed.
101101

102+
#### `ImageCacheProvider.seedCache(local: string, url: string, options: CacheOptions): Promise`
103+
Seed the cache for a given url with a local image.
104+
Useful to avoid having to download an image when you have a local copy.
105+
102106
#### `ImageCacheProvider.deleteCachedImage(url: string, options: CacheOptions): Promise`
103107
Deletes the underlying cached image for a given url.
104108

0 commit comments

Comments
 (0)