﻿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
9761	Enhancement CacheBackend API	fero	nobody	"In order to make the CacheBackend easily used by custom cache middleware component (which is application aware),
I think it should be appropriate to add two methods

{{{
when_cached(self, key) --> the timestamp of the cached key if present, 0 otherwise
get_if_newer(self, key, timestamp) --> get only if ""when_cached"" timestamp is more than the timestamp in input
}}}

The former is a MUST to implement custom cache middleware,

the latter is a BONUS but is trivial to implement it in custom cache middleware too (if the first is present)

I attach a patch to filebased.py CacheClass in order to show the implementation for file based cache"		closed	Core (Cache system)	1.0		wontfix	cache API	luca.ferroni@…	Unreviewed	0	0	0	0	0	0
