Skip Menu |

This queue is for tickets about the Memoize-Memcached CPAN distribution.

Report information
The Basics
Id: 66804
Status: open
Priority: 0/
Queue: Memoize-Memcached

People
Owner: Nobody in particular
Requestors: PMORCH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Feature Request: Support one-argument flush_cache('memoized_function')
Isn't it pretty straight-forward to implement the one-argument flush_cache('memoized_function') given this trick? : http://code.google.com/p/memcached/wiki/NewProgrammingTricks#Deleting_By_Namespace It would require that the key_prefix stored is in memcached and that flush_cache('memoized_function') increments it like in the "trick" above. This would require every get to be twofold: 1) get the key_prefix and 2) get the value once we know the current key_prefix. So perhaps the memcached hash argument to memoize_memcached should take a boolean "flushable" key/value to determine if the two-step flushable approach should be taken so as not to create performance degradation for existing users. I at least need the one-argument flush_cache to be available, so for now I won't use Memoize::Memcached but do it myself. But this could be done with no backwards-compatible API problems, couldn't it? Perhaps after any change like this the one-argument flush_cache should issue a carp if the function isn't setup with flushable=>1. What do you think? Peter
Hi Peter, I'm the new maintainer for this module. Are you still interested on this? I've set a Git repository on Gitorious where I put my work on this.
Subject: Re: [rt.cpan.org #66804] Feature Request: Support one-argument flush_cache('memoized_function')
Date: Thu, 24 Apr 2014 15:01:00 +0200
To: bug-Memoize-Memcached [...] rt.cpan.org
From: Peter Valdemar Mørch <peter [...] morch.com>
Hi Tomás, Back in 2011, I did need this. Now we've implemented our own alternative using the principles outlined here and it works great. I still think it is a good idea, and we would've used it had it been there, but no, we don't need this ourselves as we already have something else that works flawlessly. Feel free to implement or close as you see fit. Peter On Tue, Apr 22, 2014 at 5:38 PM, Tomás Cohen Arazi via RT < bug-Memoize-Memcached@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=66804 > > > Hi Peter, I'm the new maintainer for this module. Are you still interested > on this? I've set a Git repository on Gitorious where I put my work on this. >
-- Peter Valdemar Mørch http://www.morch.com