Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (8 years ago) RSS 2.0 feedStarStarStar 49%Total: 2,274 All time: 1,605 This week: 1,364Up
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: 36
All time rank: 1775 in Ukraine Ukraine
Week rank: 377 Down8 in Ukraine Ukraine Down
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%1Total:2,274All time:1,605
 This week:0This week:1,364Up
User Ratings User Comments (1)  
 All time
Utility:81%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:1680