I have social network website that contains thousands of users. Until now I used the classic way of storing user's details in the session object. Now, I want to upgrade it, so it will work against Memcached, and the key value is the "userId".
My question is: What is or where is the best place to keep the "userId" so I can use it constantly for querying the user's details from Memcached?