Class TSqlMapLruCache

Description

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

  • author: Wei Zhuo <weizhuo[at]gmail[dot]com>
  • version: $Id: TSqlMapCache.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.1

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

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

Stores a value identified by a key into cache.

The expire and dependency parameters are ignored.

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

Inherited Methods

Inherited From TSqlMapCache

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

Documentation generated on Mon, 25 Jun 2012 14:39:15 +0200 by phpDocumentor 1.4.3