PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 2,400 All time: 1,626 This week: 206Up
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: 46
All time rank: 1845 in Ukraine Ukraine
Week rank: 170 Up3 in Ukraine Ukraine Up
Innovation award
Innovation award
Nominee: 1x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:2,400
This week:0
All time:1,626
This week:206Up
User Ratings User Comments (1)
 All time
Utility:79%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:3032