Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

How to determine if a key is in memory cache? #378

Open
rodly opened this issue Feb 5, 2019 · 3 comments
Open

How to determine if a key is in memory cache? #378

rodly opened this issue Feb 5, 2019 · 3 comments

Comments

@rodly
Copy link

rodly commented Feb 5, 2019

I'd like to know before calling get or fetch whether a key is cached. Is this currently possible?

@ema987
Copy link

ema987 commented Mar 4, 2019

Hi @rodly ,
please have a look at my fork if what I made is enough for your needs https://github.com/ema987/Store/pull/2

@StoreMantainers: I'm not sure if this is enough to correctly implement the functionality but if it is I'll gladly put a pull request.

@digitalbuddha
Copy link
Contributor

Sure, the implementation looks great. Mind opening a pr and adding a test?

@ema987
Copy link

ema987 commented May 16, 2019

@digitalbuddha please have a look at it

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

No branches or pull requests

3 participants