﻿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
10646	memcached's incr and decr should throw ValueError if keys don't exist	dauerbaustelle	anonymous	"The ""incr"" and ""decr"" methods of the ""django.core.cache.backends.memcached.CacheClass"" should throw a ValueError if the ""key"" to increase/decrease does not exist.

Right now, two things can happen trying to increase/decrease an invalid key, depending on the python memcached backend you're using: Using ""cmemcache"", you simply a `None` as return value. Using ""memcache"", you'll get some weird ValueErrors telling you that you cannot convert ""NOT_FOUND"" to an int (""memcache"" tries to return the memcache server's return value as int).

See the attached patch for a fix."		closed	Core (Cache system)	1.1-beta		fixed	memcached, cache, incr, decr, sprint200912		Ready for checkin	1	0	0	0	0	0
