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

[API] Expose hasKey #27

Merged
merged 3 commits into from
Nov 1, 2019
Merged

[API] Expose hasKey #27

merged 3 commits into from
Nov 1, 2019

Conversation

kittinunf
Copy link
Owner

@kittinunf kittinunf commented Nov 1, 2019

What's in this PR?

This PR exposes another API interface for us. This is to check whether the entry for the given key is there in the persistence layer or not.

Implementation

It will check in the memcache first, then diskcache. If it couldn't be found in both then return false.

fun hasKey(key: String): Boolean

@kittinunf kittinunf self-assigned this Nov 1, 2019
@kittinunf kittinunf merged commit 2854ff1 into master Nov 1, 2019
@kittinunf kittinunf deleted the kv/add-has-key-check branch November 1, 2019 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant