_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bharath venkatesh
Sent: 7 février 2008 07:03
To: [email protected]
Subject: image chaching
hi ...
my project is about image server (this is my first project so i don't have
any previous experience)...in which i am required to cache recently used
images for fast access.. i was wondering wether i can use memcached to cache
my images .. if yes how can it be done .. as i read in faqs of memcached
that key size can be up to 250 characters (thats not a issue ) but data
stored can not exceed 1mb in size .. and many images may exceed 1mb ....
bharath venk
~~~
I dont think caching images in memcached is a good idea since it would add
overhead. Memcached is more useful for retrieving from cache instead of
going to the db, or to cache a file that is created dynamically to save on
cpu.
If the image is static, just serve it from your web server, makes for sense
If you are using apache for serving files and are looking to optimize image
downloads, you could serve your images from a second web server running a
lighter web server like www.lighttpd.net/