You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,24 @@ CacheManager.config = {
81
81
};
82
82
```
83
83
84
+
#### Custom cache key, useful for caching images from Amazon's S3 and similar services, add this (or whatever suits your needs) on `CacheManager.config`:
85
+
86
+
```tsx
87
+
CacheManager.config= {
88
+
// ...
89
+
getCustomCacheKey: (source:string) => {
90
+
// Remove params from the URL for chacing images (useful for caching images from Amazons S3 bucket and etc)
#### `cacheLimit` config: (auto pruning of cached files)
85
103
86
104
If `cacheLimit` is set to `0` (default value) then the cache will never be auto pruned. This setting accepts a number of Bytes eg. `1024 * 1024 * 256`(~256MB) and requires `react-native-file-access` >= 2.4.0, if you're using < 2.4.0 then leave the default value `0` (disabled).
0 commit comments