<div>- I do not want to iterate each and every key and there then decide whether its a user or a group .I could have so many users or group entries.The thing here is that I dont have the keys i need to iterate.I would want to iterate on every User entity or group entity</div> <div>Suppose I have 1000 users and 2000 groups in one cache,and if i just needed all the 1000 users, I would unnessary iterate 3000 keys.</div> <div> </div> <div>Thanks</div> <div>Abhishek<BR><BR><B><I>Steven Grimm <sgrimm@facebook.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">You can indeed set up two memcached instances on different ports. You <BR>will have to make sure their combined maximum memory usage fits in your <BR>machine's physical memory, and you will have to manually decide what <BR>percentage of that memory goes to each cache (by setting the respective <BR>memcached instances' maximum
memory options to appropriate values). But <BR>it should work fine. We run multiple memcached instances on a few of our <BR>computers to take advantage of multiple CPUs with no issues.<BR><BR>But help me understand: why can you iterate through keys 1, 2, 3, 4, <BR>etc., but not keys u1, u2, u3, u4, etc.? I am having a hard time coming <BR>up with a scenario where that would involve more than stripping off or <BR>prepending a character as you do exactly the same iteration you would do <BR>without the prefixes. It is quite possible I simply don't understand <BR>what you're trying to achieve, though.<BR><BR>-Steve<BR><BR><BR>Abhishek Pokharna wrote:<BR>> Thats what i dont want to do. There are situations where I dont know <BR>> the keys and I need to performe some "global" operation on each type <BR>> of cache,like iterating all users or groups and do something with each <BR>> entity.<BR>> Could I possibly start another daemon thread on a separate port which
<BR>> will imitate another type of cache? But would this be expensive on <BR>> resources?<BR>> Thanks<BR>> Abhishek<BR><BR></BLOCKQUOTE><BR><p> 
        
        
                <hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>