invalidation by namespace Re: Listing all keys on a server: why?

Serhat Sakarya serhat at sakarya.nl
Fri Jul 28 13:12:47 UTC 2006


On 7/28/06, Paul T <pault12345 at yahoo.com> wrote:
>
>
> 3. key_salt is stored in memcached forever.


The problem I see with this approach is that when the salt *does* get lost
(node reboot, failure, etc), you risk that old data may be revalidated.

In this case, I think that it's better to trade some efficiency for data
integrity by including the salt in the value instead of the key. It will
result in more lookups, but losing the salt won't cause issues. The
scalability in this area makes sure that any performance loss won't be of
the painful kind.

Regards,

Serhat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20060728/474a17cf/attachment.htm


More information about the memcached mailing list