hasKey?
Kevin A. Burton
burton at newsmonster.org
Sat Feb 5 16:55:59 PST 2005
Skylos wrote:
>I'd have to wonder, though - are you then going to query all the
>memcached servers in the cluster, individually, for the list of keys
>they have - which may be quite extensive... and the accompanied
>overhead in transmitting that list could be quite significant, times
>the number of servers you have.
>
>
>
No... I know the key and I'd do the same routing that it normally does
based on the mod offset.
>and then I've never looked at the code - does the individual servers
>even normally *keep* a list of available keys?
>
Uh... I hope so... Its a hashtable right?
>I can't imagine they
>have any good reason to - they never iterate over their keys, why
>bother? They're either in the data structure, or they're not....
>
>
>
No... its a hashtable so I'll just see if I have an entry for the key
for this box and if not then I know its not there.
--
Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.
Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
More information about the memcached
mailing list