Login   Register  
PHP Classes
elePHPant
Icontem

Multi-server memcache interface

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Grigori Kochanov
Name: Grigori Kochanov is available for providing paid consulting. Contact Grigori Kochanov .
Packages: 7 Browse all classes by Grigori Kochanov Browse all classes by
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 34
All time rank: 1835 in Ukraine Ukraine
Week rank: 191 Down6 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Grigori Kochanov  >  Multi-server memcache interface  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Multi-server memcache interface
Base name: memcache
Description: Store and get data from multiple memcache servers
Version: 1
PHP version: 5
License: BSD License
All time users: 2110 users
All time rank: 1651
Week users: 1 user
Week rank: 2036 Down
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Cache Classes for managing cached pages View top rated classes


  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

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.2%)
Good (87.5%)
-
-
-
-
Not sure (49.4%)
1583
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file memcache.class.php Class the class with comments

Download all files: memcache.tar.gz memcache.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.