Correct usage of Voldemort as key-value pair?

Posted by zengr on Stack Overflow See other posts from Stack Overflow or by zengr
Published on 2010-04-01T19:54:19Z Indexed on 2010/04/01 20:03 UTC
Read the original article Hit count: 338

Filed under:

Hello,

I am trying to understand, how can Voldermort be used? Say, I have this scenario:

Since, Voldemort is a key-value pair. I need to fetch a value (say some text) on the basis of 3 parameters.

So, what will be the key in this case? I cannot use 3 keys for 1 value right, but that value should be search able on the basis of those 3 parameters.

Am I making sense?

Thanks

EDIT1

eg: A blog system. A user posts a blog: User's data stored: Name, Age and Sex The blog content (text) is stored.

Now, I need to use Voldemort here, if a user searches from the front end for all the blog posts by Sex: Male

Then, my code should query voldemort and return all the "blog content (text)" which have Sex as Male.

© Stack Overflow or respective owner

Related posts about voldemort