mod_memcache for lighttpd

mod_memcache is a plugin which stores content of files in memory for later visit. mod_memcache has following configuration:

  • memcache.enable. enable or disable memcache, default to enable
  • memcache.maxmemory. maxium memory in Mbytes used by mod_memcache, default is 512(means 512M memory).
  • memcache.maxfilesize. maxium size in kbytes for single cache file, default is 512(means 512k bytes).
  • memcache.lruremovenumber. number of cached items to remove when used memory reached maxmemory by LRU algorthim. default is 200.
  • memcache.expire-time. cache's expire time in minutes. default is zero which means never expire
  • memcache.filetypes. content-type arrays which want to put into memcache. default is not set which means to cache all types. for examples: memcache.filetypes=("text/css") to cache css files only.

http_response_handle_cachable function and mod_staticfile.c are slightly modified for http 304 code handling. memcache will set three counters in mod_status' status.statistics-url for monitoring.

patch is here. please let me know if you had questions.

PS: I like to use hash because hash is straigh forward and fast;)

Keywords: , ,


No Responses to “mod_memcache for lighttpd”  

  1. No Comments

Leave a Reply



天气信息