PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2006-12-02 (9 years ago) RSS 2.0 feedStarStarStar 51%Total: 2,356 All time: 1,591 This week: 1,042Up
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 <contact>
Classes: 7 packages by
Country: Ukraine Ukraine
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  
 0%1
Total:2,356
This week:0
All time:1,591
This week:1,042Up
User Ratings User Comments (1)
 All time
Utility:85%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:1958