PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 2,400 All time: 1,625 This week: 206Up
Version License PHP version Categories
memcache 1BSD License5Networking, PHP 5, Cache


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: 45
All time rank: 1845 in Ukraine Ukraine
Week rank: 275 Down5 in Ukraine Ukraine Equal
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file memcache.class.php Class the class with comments

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