Overview

Packages

  • Doctrine
    • Access
    • Adapter
    • AuditLog
    • Builder
    • Cache
    • Cli
    • Collection
    • Column
    • Compiler
    • Configurable
    • Connection
    • Data
    • DataDict
    • Event
    • EventListener
    • Exception
    • Export
    • Expression
    • File
    • Formatter
    • Hook
    • Hydrate
    • I18n
    • Import
    • Inflector
    • IntegrityMapper
    • Lib
    • Locator
    • Locking
    • Manager
    • Migration
    • Node
    • Null
    • Overloadable
    • Pager
    • Parser
    • Plugin
    • Query
    • RawSql
    • Record
    • Relation
    • Search
    • Sequence
    • Table
    • Task
    • Template
    • Transaction
    • Tree
    • Util
    • Validator
    • View
  • None
  • PHP
  • symfony
    • yaml

Classes

  • Doctrine_Cache_Apc
  • Doctrine_Cache_Array
  • Doctrine_Cache_Db
  • Doctrine_Cache_Driver
  • Doctrine_Cache_Memcache
  • Doctrine_Cache_Xcache

Interfaces

  • Doctrine_Cache_Interface

Exceptions

  • Doctrine_Cache_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Download

Class Doctrine_Cache_Apc

APC Cache Driver

Doctrine_Cache_Driver implements Doctrine_Cache_Interface
Extended by Doctrine_Cache_Apc
Package: Doctrine\Cache
License: LGPL
Author: Konsta Vesterinen <kvesteri@cc.hut.fi>
Author: Jonathan H. Wage <jonwage@gmail.com>
Version: $Revision: 7490 $
Since: 1.0
Link: www.doctrine-project.org
Located at Cache/Apc.php
Methods summary
public
# __construct( array $options = array() )

constructor

constructor

Parameters

$options
associative array of cache driver options

Overrides

Doctrine_Cache_Driver::__construct()
protected mixed
# _doFetch( string $id, boolean $testCacheValidity = true )

Fetch a cache record from this cache driver instance

Fetch a cache record from this cache driver instance

Parameters

$id
cache id
$testCacheValidity
if set to false, the cache validity won't be tested

Returns

mixed
Returns either the cached data or false
protected mixed
# _doContains( string $id )

Test if a cache record exists for the passed id

Test if a cache record exists for the passed id

Parameters

$id
cache id

Returns

mixed
false (a cache is not available) or "last modified" timestamp (int) of the available cache record
protected boolean
# _doSave( string $id, string $data, integer $lifeTime = false )

Save a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::save()

Save a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::save()

Parameters

$id
cache id
$data
data to cache
$lifeTime
if != false, set a specific lifetime for this cache record (null =&gt; infinite lifeTime)

Returns

boolean
true if no problem
protected boolean
# _doDelete( string $id )

Remove a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::delete()

Remove a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::delete()

Parameters

$id
cache id

Returns

boolean
true if no problem
protected array
# _getCacheKeys( )

Fetch an array of all keys stored in cache

Fetch an array of all keys stored in cache

Returns

array
Returns the array of cache keys
Methods inherited from Doctrine_Cache_Driver
_getKey(), contains(), delete(), deleteAll(), deleteByPrefix(), deleteByRegex(), deleteBySuffix(), fetch(), getOption(), save(), setOption()
Properties inherited from Doctrine_Cache_Driver
$_options
Doctrine 1 API documentation generated by ApiGen 3.0dev