Hi Jacob,

On Thu, Dec 2, 2010 at 8:05 AM, Jacob Burch <[email protected]> wrote:

>
> The problem is I can't think of a good way to force instant-expiring
> sets in pylibmc. The only way to fake the response is to alter the
> actual return value. 0 and all negative numbers, in pylibmc, set for
> never expire. And even a timeout of 1 second currently causes the
> cache template tag tests to fail.
>

Can't you just no-op a timeout=0 in the django backend, regardless of the
actual memcache lib in use? ie. never send the 'set' command to
pylibmc/python-memcache...

Hmm. On further thinking, make it into a 'delete' call so any existing entry
will be expired instantly. Maybe that's getting too magical?

Rob :)

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to