PHP Classes

MultiCache library: Cache data in files or memcached

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-11-07 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 567 All time: 5,187 This week: 885Up
Version License PHP version Categories
multicache-library 1.01GNU Lesser Genera...5.0PHP 5, Files and Folders, Cache
Description Author

This package can be used to cache data in files or memcached server.

It provides a base generic caching class and sub-classes to store cached data in files or in a memcached server.

The class can associate unique cache keys with cached data.

The cached data may expire after an optional expiry time. The class may clean up expired cache entries.

Name: Vadym Timofeyev <contact>
Classes: 3 packages by
Country: The Netherlands The Netherlands
Age: 42
All time rank: 84124 in The Netherlands The Netherlands
Week rank: 982 Down29 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 1x

README (MultiCache class)

NAME: MultiCache class


AUTHOR: Vadym Timofeyev <>


    MultiCache class class provides a convenient way to work with caches.
    It can use local file system, memcache or other external storage.

    Supported features:

      - File system cache and memcache. 

      - Cache limit control. Check cache size and number of cached items.

      - Flexible cache clean logic (garbage collector).


    include 'MultiCache.class.php';
    include 'MultiCacheFile.class.php';

    $mc = new MultiCacheFile();
    $mc->set('test', 'value', 10);
    print $mc->get('test');

    include 'MultiCache.class.php';
    include 'MultiCacheMemcache.class.php';

    $mc = new MultiCacheMemcache();
    $mc->set('test', 'value', 10);
    print $mc->get('test');


    Copyright (c) 2007 Vadym Timofeyev. All rights reserved.
    This software is released under the GNU Lesser General Public License.
    Please read the disclaimer at the top of the MultiCache.class.php file.
  Files folder image Files  
File Role Description
Plain text file MultiCache.class.php Class MultiCache class
Plain text file MultiCacheFile.class.php Class MultiCacheFile class
Plain text file MultiCacheMemcache.class.php Class MultiCacheMemcache class
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file README Doc. README
Accessible without login Plain text file ChangeLog Data ChangeLog
Accessible without login Plain text file LICENSE Lic. LICENSE

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,187
This week:885Up