Skip to content
Enhanced client libraries for memcached.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Copyright (C) 2009 Jeff Trudeau

This program is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.  This program is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  You should
have received a copy of the GNU General Public License along with this program.  If not, see

Enhanced client libraries for memcached.

 * Provides optional, configuration-enabled support for:
   * Replication among groups of memcached servers.
   * Persistence to generic datasources.
   * Partitioning of data to multiple tables within a datasource (e.g., disperse_data, disperse_lock, disperse_session)
   * Cache-based sessions (depending on language). 
 * Uses a shared XML configuration so that multiple languages can access cached data in the same manner, thus enabling support for hybrid (multi-language) software systems. 
 * Languages supported:
   * PHP 
 * Languages planned:
   * Java
   * Perl
   * Python
   * Ruby
 * Future features:
   * Support for multiple datasources (language-specific?) 

PHP Example:

  // include the library

  // load default configuration file
  // disperse can now optionally load any configuration file

  // get reference to cache
  $cache =& CacheFactory::getInstance();

  // setup something to cache
  $value = 'here is some data that needs to be cached';

  // update item in cache
  $cache->set('some key', serialize($value));

  // library handles storage of key/value according to configuration
Something went wrong with that request. Please try again.