-
Notifications
You must be signed in to change notification settings - Fork 70
Feature: getDiskCacheSize and getMemoryCacheSize #238
Copy link
Copy link
Open
Labels
EnhancementNew feature or requestNew feature or requestHelp WantedIdeal for external contributorsIdeal for external contributorsPlatform: BothIssue on both Android and iOS platformsIssue on both Android and iOS platformsResolution: PR SubmitttedA pull request with a fix has been provided.A pull request with a fix has been provided.
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestNew feature or requestHelp WantedIdeal for external contributorsIdeal for external contributorsPlatform: BothIssue on both Android and iOS platformsIssue on both Android and iOS platformsResolution: PR SubmitttedA pull request with a fix has been provided.A pull request with a fix has been provided.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem Statement
Currently there's no no public API to retrieve the sizes of the in-memory and disk caches.
Proposed Solution
Implement two static methods in the
FastImagemodule:These methods would interface with the underlying Glide and SDWebImage configurations to retrieve the cache sizes.
Example Usage:
Alternatives Considered
No response
Additional context
DiskCacheStrategyandDiskCacheinterfaces.Affected Platforms
Android, iOS
Priority
Medium (would be a nice addition)
Prior Discussion
DylanVann/react-native-fast-image#828