Class TSqlMapLruCache

Description

Least recently used cache implementation, removes object that was accessed last when the cache is full.

  • since: 3.1
  • version: $Id: TSqlMapCache.php 2541 2008-10-21 15:05:13Z qiang.xue $
  • author: Wei Zhuo <weizhuo[at]gmail[dot]com>

Located in /Data/SqlMap/DataMapper/TSqlMapCache.php (line 132)

TSqlMapCache
   |
   --TSqlMapLruCache
Method Summary
mixed get (mixed $key)
void set (string $key, mixed $value, mixed $expire, [mixed $dependency = null])
Variables
Methods
get (line 137)
  • return: Gets a cached object with the specified key.
  • access: public
mixed get (mixed $key)
set (line 153)

Stores a value identified by a key into cache.

The expire and dependency parameters are ignored.

  • access: public
void set (string $key, mixed $value, mixed $expire, [mixed $dependency = null])
  • string $key: the key identifying the value to be cached
  • mixed $value: the value to be cached

Inherited Methods

Inherited From TSqlMapCache

TSqlMapCache::__construct()
TSqlMapCache::add()
TSqlMapCache::delete()
TSqlMapCache::flush()
TSqlMapCache::getCacheSize()
TSqlMapCache::setCacheSize()

Documentation generated on Sun, 24 May 2009 16:48:30 -0400 by phpDocumentor 1.3.0RC4