Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access cache by sync methods #75

Open
aelam opened this issue Aug 22, 2016 · 1 comment
Open

Can't access cache by sync methods #75

aelam opened this issue Aug 22, 2016 · 1 comment

Comments

@aelam
Copy link

aelam commented Aug 22, 2016

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;
@roccozanni
Copy link

+1 for this. In our case, we orchestrate background jobs using Rx observables so it would be useful to also have sync methods to access the cache. Having to deal explicitly with GCD queues forced us to do some little hacks that we'd like to avoid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants