python-memcached icon indicating copy to clipboard operation
python-memcached copied to clipboard

Add support for default value in get

Open samupl opened this issue 6 years ago • 2 comments

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

samupl avatar Feb 12 '19 11:02 samupl

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

ahsanshafiq742 avatar Sep 25 '19 10:09 ahsanshafiq742

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

samupl avatar Oct 01 '19 12:10 samupl

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

linsomniac avatar Apr 16 '23 00:04 linsomniac