﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30181	Fix cache.get() with default on PyLibMCCache if None is cached	Jakub Szafrański	Jakub Szafrański	"If `None` is saved to the cache, the `default` keyword argument in `cache.get()` shadows it if using any Memcached backend. This is not consistent with LocMemCache.

The issue can be very easily fixed within `PyLibMCCache`, as it supports retrieving a default value if key is not present.

For `MemcachedCache`, unfortunatelly, this is not possible because of `python-memcached` limitations, although I've opened up an issue and PR to the upstream package maintainer that would add functionality that would allow this in `MemcachedCache` as well: https://github.com/linsomniac/python-memcached/issues/159

I will fix this issue for `PyLibMCCache` for now, and once (if) the upstream PR for `python-memcached` gets approved, merged and released, I'll also submit a PR that would fix this issue for `MemcachedCache` (although that would require a minimum version of `python-memcached`, so that one would probably be a little more complex)."	Cleanup/optimization	closed	Core (Cache system)	2.1	Normal	fixed	memcached none	Jakub Szafrański	Ready for checkin	1	0	0	0	0	0
