I have a social network
The users table is around 60,000 rows
The friends table is around 1 million
rows (used to determine who is your
The default maximum object size that is allowed in Memcache is 1MB.
@jsaondavis : "session data is saved into a file".
Your above statement is wrong. Session can be configured to store in database. Default session hadndler is file.
Redis would be a good solution:
Here is a thread on the Redis Vs. Memcached. Sounds like Redis has 512mb storage instead of the 1mb limit... QUITE a bit different :)
Memcached vs. Redis?
Wrong! Memcached is not fixed to a size! its up to your computer memory and configurations you set.
Memcache is your best bet for a lot of reasons:
... and many more ;)
As to some of your concerns about memory footprint of individual cached items you've got a few options. My initial thought is to just give it a whirl, see how big these cache items really get (you can find several open-source things to monitor the actual cache usage, such as cacti). I think they'll be smaller than you'd think.
If they're not, I'd suggest re-thinking your cache strategy as far as what you actually cache, for how long, etc. Maybe you could build the feed from several things already in the cache (i.e. cache individual user data, and then build the feed for a person from all those individual items in cache). There are a lot of good articles out there on that front, just search 'em out :)