spotify / spotify/SPTPersistentCache
Can't access cache by sync methods
Open
Nobody has claimed this yet.
feature request
- Dominant language
- Objective-C
- Stars
- 1.2k
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
I expect to get the cache from the return value rather than in a block
Is there an alternative way to implement that makes it can return cache value directly?
- (BOOL)loadDataForKey:(NSString *)key
withCallback:(SPTPersistentCacheResponseCallback _Nullable)callback
onQueue:(dispatch_queue_t _Nullable)queue;
Contributor guide
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 with the loadDataForKey:withCallback:onQueue: entry point and examine how its callback and queue define cache access. Clarify the intended synchronous return behavior and its interaction with asynchronous loading; done means an agreed API direction or implementation with documented behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100