logo       

Does key length require storage?: msg#00066

web.cache.memcached

Subject: Does key length require storage?

The current protocol.txt says that the maximum lenght of a key is 250 characters.

Is there any hashing done in the server to prevent storage of the key or is the entire key stored so that the server can rehash if necessary?

If so then its certainly not a problem. I'll probably just use SHA1 on my server and use that as my key. I want to use our OR layer to generate keys which are actually SQL but storing arbitrary SQL strings as keys seems both a bit unsafe as well as a waste of memory considering how fast SHA1 is...

I was then going to Base64+filesafe encode the key and store that in the server....

Thoughts?

--

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise