spotify / spotify/SPTPersistentCache

Can't access cache by sync methods

Open
#75 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.