[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/cache/src/ -> lmbCacheTools.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  lmb_require('limb/toolkit/src/lmbAbstractTools.class.php');
  10  
  11  /**

  12   * class lmbCacheTools.

  13   *

  14   * @package cache

  15   * @version $Id: lmbCacheTools.class.php 5945 2007-06-06 08:31:43Z pachanga $

  16   */
  17  class lmbCacheTools extends lmbAbstractTools
  18  {
  19    protected $cache;
  20  
  21    function getCache()
  22    {
  23      if(is_object($this->cache))
  24        return $this->cache;
  25  
  26      lmb_require('limb/cache/src/lmbCachePersisterKeyDecorator.class.php');
  27      $this->cache = new lmbCachePersisterKeyDecorator(new lmbCacheMemoryPersister());
  28  
  29      return $this->cache;
  30    }
  31  
  32    function setCache($cache)
  33    {
  34      $this->cache = $cache;
  35    }
  36  }
  37  ?>


Generated: Sun Oct 12 04:41:30 2008 Cross-referenced by PHPXref 0.7