Thread: memcached
View Single Post
  #7  
Old 7th July 2009, 17:37
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Well you need a client to talk to the server (daemon)

MemcacheD is the daemon, and alot of people wrote clients for it to be used in different types of coding languages etc .. here is a complete list: http://code.google.com/p/memcached/wiki/Clients (you'll notice your pecl module for php is listed there as well

1. Hostname: the ip or hostname where your memcached server is running on
Port: the post where memcached is running in (11211 is the default memcached port)
Weight: is not used when you have 1 memcached server, weight is when you have 2 or more. so since you've set it to 10, you can leave it like that.

2. nah not really, the daemon is easy installed and most of the default settings are just fine, install and go
Something you can try: Save thumbnails in memcached
We have alot of thumbnail generation going on on our sites .. when they get called, we check it's existence in memcached, when not there, generate thumbnail, save it in memcached ... the next call will be directly from memcached since it's there, so no double generation, .. saves alot of processing on the servers .. after some time when the memory is full, it gets wipes and start over again try it!

Last edited by Mark_NL; 7th July 2009 at 17:40.
Reply With Quote