Multi-server memcache interface: Store and get data from multiple memcache servers

Recommend this page to a friend!
  Info   View files (1)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
51%Total: 2,392 All time: 1,614 This week: 241
Version License PHP version Categories
memcache 1BSD License5Networking, PHP 5, Cache
Description Author

This class can be used to store and retrieve cached data from distributed cached servers.

It can connect to a memcache server from a list of servers to store and retrieve cached data.

The memcache server that it connects depends on identifier of the key use to access each cached data item. So, data items are cached in different servers to distribute the load.

The class can add, get, set, replace, delete, increment and decrement cached data items.

It can also invalidate all cached items in the whole list of memcache of servers.

Innovation Award
PHP Programming Innovation award nominee
December 2006
Number 4

Prize: One copy of DWeb Pro Lifetime License
Often Web applications use sessions or server files to cache information between requests.

Using server files to cache application information works well for single server sites.

When you need to cache information to be made available to a site served by a cluster, using files is no longer an ideal solution, as it becomes much slower to distribute the information.

For sites that use server clusters, using memcache based solution to distribute cached information is much more efficient.

However, if the information to be distributed too large, a single memcache server may not be enough.

This class can cache information distributing it evenly among a cluster of memcache servers. It uses the cache item keys to compute an hash value to determine which of the memcache servers in the cluster is used.

Manuel Lemos
Picture of Grigori Kochanov
Name: Grigori Kochanov is available for providing paid consulting. Contact Grigori Kochanov .
Classes: 7 packages by
Country: Ukraine Ukraine
Age: 42
All time rank: 1835 in Ukraine Ukraine
Week rank: 713 12 in Ukraine Ukraine
Innovation award
Innovation award
Nominee: 1x

File Role Description
memcache.class.php Class the class with comments

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:1,614
This week:241
User Ratings User Comments (1)
 All time

For more information send a message to info at phpclasses dot org.