load values into a memcache
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?
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
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
memcache when the server is first started. That means, when the server
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
More information about the memcached