Login   Register  
PHP Classes
elePHPant
Icontem

Class: Multi-server memcache interface

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Grigori Kochanov  >  Multi-server memcache interface  >  Download .tar.gz .zip  >  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
Related classes: , , , ,
Version: 1
PHP version: 5
License: BSD License
All time users: 1854 users
All time rank: 1790
Week users: 7 users
Week rank: 515
Picture of Grigori Kochanov
Author: Grigori Kochanov is available for providing paid consulting. Contact Grigori Kochanov .
Packages: 7 Browse this author's classes Browse this author's classes
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 33
All time rank: 1865 in Ukraine Ukraine
Week rank: 204 Down7 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
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.

 

  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

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
December 2006
Number 4
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%)
1530
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.