Doctrine


Doctrine\Common\Cache\AbstractCache
/Doctrine/Common/Cache/AbstractCache.php at line 35

Class AbstractCache

AbstractCache

public abstract class AbstractCache

Base class for cache driver implementations.

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision: 3938 $
Author:
Guilherme Blanco
Jonathan Wage
Roman Borschel

Method Summary
void

contains(mixed id)

{@inheritdoc}

void

delete(mixed id)

{@inheritdoc}

array

deleteAll()

Delete all cache entries.

array

deleteByPrefix(string prefix)

Delete cache entries where the id has the passed prefix

array

deleteByRegex(string regex)

Delete cache entries where the id matches a PHP regular expressions

array

deleteBySuffix(string suffix)

Delete cache entries where the id has the passed suffix

void

fetch(mixed id)

{@inheritdoc}

abstract array

getIds()

Get an array of all the cache ids stored

void

save(mixed id, mixed data, mixed lifeTime)

{@inheritdoc}

void

setNamespace(string namespace)

Set the namespace to prefix all cache ids with.

Method Detail

/Doctrine/Common/Cache/AbstractCache.php at line 65

contains

public void contains(mixed id)


/Doctrine/Common/Cache/AbstractCache.php at line 82

delete

public void delete(mixed id)


/Doctrine/Common/Cache/AbstractCache.php at line 98

deleteAll

public array deleteAll()

Delete all cache entries.

Returns:
$deleted Array of the deleted cache ids

/Doctrine/Common/Cache/AbstractCache.php at line 132

deleteByPrefix

public array deleteByPrefix(string prefix)

Delete cache entries where the id has the passed prefix

Returns:
$deleted Array of the deleted cache ids

/Doctrine/Common/Cache/AbstractCache.php at line 113

deleteByRegex

public array deleteByRegex(string regex)

Delete cache entries where the id matches a PHP regular expressions

Returns:
$deleted Array of the deleted cache ids

/Doctrine/Common/Cache/AbstractCache.php at line 151

deleteBySuffix

public array deleteBySuffix(string suffix)

Delete cache entries where the id has the passed suffix

Returns:
$deleted Array of the deleted cache ids

/Doctrine/Common/Cache/AbstractCache.php at line 57

fetch

public void fetch(mixed id)


/Doctrine/Common/Cache/AbstractCache.php at line 218

getIds

public abstract array getIds()

Get an array of all the cache ids stored

Returns:
$ids

/Doctrine/Common/Cache/AbstractCache.php at line 73

save

public void save(mixed id, mixed data, mixed lifeTime)


/Doctrine/Common/Cache/AbstractCache.php at line 49

setNamespace

public void setNamespace(string namespace)

Set the namespace to prefix all cache ids with.


Doctrine