OK, Thanks. Surely same data would be requested many times.

One more question what if Memcached server is down, then its all cached
data lost or retrieved when recovered. I have read somewhere that it has
capability of restoring data.
Sikander

On Wed, Dec 28, 2016 at 2:07 PM, Jolene Engo <dev.toas...@gmail.com> wrote:

> You want to cache the results of database queries.  For example, an object
> that represents user1.  Before you go to the database, you check the cache
> first for user1.  user2 obviously has it's own cache key.  If it's not
> found, go to the database and cache the result.
>
> The benefit of memcache is repeated requests for the same data.  It could
> be something only 1 user is hitting multiple times or many users are
> hitting over and over.
>
>
> On Wed, Dec 28, 2016 at 12:45 AM, Sikander Rafiq <sikanderra...@gmail.com>
> wrote:
>
>> Hi,
>> I'm wondering how effective would be using Memcached because in real
>> scenario database queries would be different each time (i.e. data requested
>> for user1 and then data requested for user2 and so on.) If we cached query
>> result, then there is quite little chance that same queried data required
>> again for user1.
>>
>> Please explain me how using Memcached would be beneficial in real
>> scenario in handling huge data for companies like Twitter, Facebook,
>> WhatsApp etc.
>>
>> Regards,
>> Sikander
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "memcached" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to memcached+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "memcached" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/memcached/aUIcyH0VIDs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> memcached+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to