Login   Register  
PHP Classes
elePHPant
Icontem

File: README

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vadym Timofeyev  >  MultiCache library  >  README  >  Download  
File: README
Role: Documentation
Content type: text/plain
Description: README
Class: MultiCache library
Cache data in files or memcached
Author: By
Last change: Version 1.01
Date: 3 years ago
Size: 1,165 bytes
 

Contents

Class file image Download
README (MultiCache class)
=========================================

NAME: MultiCache class

VERSION: 1.00

AUTHOR: Vadym Timofeyev <tvad@mail333.com> http://weblancer.net/users/tvv/

DESCRIPTION:

    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).

SYNOPSIS:

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

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

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

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

COPYRIGHT:

    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.