mrousavy / mrousavy/react-native-nitro-image
[Feature Request]: Cache management
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 652
- Forks
- 37
- Avg merge
- 56m
- Merged PRs (30d)
- 6
Description
In order to manage the cache size, we need to implement:
getDiskCacheSize- to know how much cache we store to the diskgetMemoryCacheSize- perehaps usefull so we don't cacuse memory related crashes, very common case with fast-image and expo-image when using a lot ofcachePolicy="memory"orcachePolicy="memory-disk"cleanDiskCacheandcleanMemoryCache- similar tofast-image- https://github.com/DylanVann/react-native-fast-image#fastimagecleardiskcache---promisevoid
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing cachePolicy handling for memory and memory-disk caching, then compare the requested operations with fast-image's cache APIs. Done means the public API supports getDiskCacheSize, getMemoryCacheSize, cleanDiskCache, and cleanMemoryCache with behavior covering the cache policies described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100