## Class TSqlMapFifoCache

Description

First-in-First-out cache implementation, removes object that was first added when the cache is full.

- since: 3.1
- version: $Id: TSqlMapCache.php 2757 2010-01-15 14:47:40Z Christophe.Boulain $
- author: Wei Zhuo <weizhuo[at]gmail[dot]com>

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

    TSqlMapCache
       |
       --TSqlMapFifoCache

Method Summary
mixed get (mixed $key)
void set (string $key, mixed $value, mixed $expire, [mixed $dependency = null])
Variables

#### Inherited Variables

Inherited from TSqlMapCache

> TSqlMapCache::$_cache
> TSqlMapCache::$_cacheModel
> TSqlMapCache::$_cacheSize
> TSqlMapCache::$_keyList

Methods
get (line 101)

- return: Gets a cached object with the specified key.
- access: public

mixed get (mixed $key)
set (line 112)

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: cache key
- mixed $value: value to cache.

#### Inherited Methods

Inherited From TSqlMapCache

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

Documentation generated on Mon, 22 Feb 2010 12:18:41 +0000 by phpDocumentor 1.3.0RC4