load values into a memcache

Cahill, Earl ecahill at corp.untd.com
Wed Mar 7 22:00:28 UTC 2007


I would suggest you hit the database and fill the cache only as requests
come in.  If you have some notion of high-trafficked keys, you could
perhaps warm the cache appropriately.

If a given key gets a ton of hits, it will quickly be in the cache.  If
a given key gets no hits, well, why would you want it in the cache?

Enjoy!

Earl

-----Original Message-----
From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] On Behalf Of son at raider.co.nz
Sent: Wednesday, March 07, 2007 2:47 PM
To: memcached at lists.danga.com
Subject: load values into a memcache 

Hello all

In my understanding, to load keys and values into memcache, I first have
to connect to the memcache from server as it is empty. I then add (set)
keys and values (for example - data from database) into this memcache.

My question is: how I can load all those values from my database into
this
memcache when the server is first started. That means, when the server
is
started, all my keys and values are also loaded in this memcache. And
there is any problem with this ?

It can be done by configuration? Could you please help

Many thanks
shoa





More information about the memcached mailing list