I just installed memcached
and tried a couple of sample code found on php.net
but since I'm a newbie on this, i dont get the advantage of using it, where I can store the same data in a session or cookie..
for instance I run a real estate website where users do a lot of searches / queries to mysql and lot of ajax queries
as far as i understood i can chace those queries...but what happen if the results change because someone posted a new ad? how can memcached know that?
so, question is, why should I use it and in wich occasions?
thanks!