Class: Doctrine_Cache_Apc
Source Location: /Doctrine/Cache/Apc.phpClass Doctrine_Cache_Apc
Class Overview
Doctrine_Cache_Apc Located in /Doctrine/Cache/Apc.php [line 34] Doctrine_Cache_Driver | --Doctrine_Cache_ApcAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties | Inherited Methods | Inherited Constants |
---|---|---|
Inherited From Doctrine_Cache_Driver |
Inherited From Doctrine_Cache_Driver
|
[ Top ]
Method Summary
Doctrine_Cache_Apc | __construct() | constructor |
mixed | contains() | Test if a cache is available or not (for the given id) |
boolean | delete() | Remove a cache record |
string | fetch() | Test if a cache is available for the given id and (if yes) return it (false else) |
boolean | save() | Save some string datas into a cache record |
[ Top ]
Properties
Methods
Constructor __construct [line 41]
|
constructor
Parameters:array | $options: | associative array of cache driver options |
API Tags:
Access: | public |
Redefinition of:
- Doctrine_Cache_Driver::__construct()
- constructor
[ Top ]
contains [line 71]
|
Test if a cache is available or not (for the given id)
Parameters:string | $id: | cache id |
API Tags:
Return: | false (a cache is not available) or "last modified" timestamp (int) of the available cache record |
Access: | public |
[ Top ]
delete [line 101]
|
Remove a cache record
Parameters:string | $id: | cache id |
API Tags:
Return: | true if no problem |
Access: | public |
[ Top ]
fetch [line 57]
|
Test if a cache is available for the given id and (if yes) return it (false else)
Note : return value is always "string" (unserialization is done by the core not by the backend)
Parameters:string | $id: | cache id |
boolean | $testCacheValidity: | if set to false, the cache validity won't be tested |
API Tags:
Return: | cached datas (or false) |
Access: | public |
[ Top ]
save [line 89]
|
Save some string datas into a cache record
Note : $data is always saved as a string
Parameters:string | $data: | data to cache |
string | $id: | cache id |
int | $lifeTime: | if != false, set a specific lifetime for this cache record (null => infinite lifeTime) |
API Tags:
Return: | true if no problem |
Access: | public |
[ Top ]