Skip to content

Add support for default value in get #158

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

Merged
merged 3 commits into from
Apr 16, 2023

Conversation

samupl
Copy link
Contributor

@samupl samupl commented Feb 12, 2019

This PR adds the default keyword argument to get() method, which allows to support a custom default value to retrieve from the cache, if a key is not present on the server.

Closes #159

@ahsanshafiq742
Copy link

ahsanshafiq742 commented Sep 25, 2019

@samupl @alex @bartTC One of my django PR(django/django#11812) is pending which is dependent on this PR. Are we planning to add this feature in memcache?

@samupl
Copy link
Contributor Author

samupl commented Oct 1, 2019

@ahsanshafiq742 Unfortunatelly, looks like this project is not maintained anymore (considering the lack of activity on this repository or on PyPI).

@linsomniac linsomniac merged commit 6daa727 into linsomniac:master Apr 16, 2023
@linsomniac
Copy link
Owner

Merged, thank you for the PR. Sorry it did't come sooner.

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.

Add support for default value in get()
3 participants