Search
API Documentation
- Doctrine
- Access
- Adapter
- Auditlog
- Builder
- Cache
- Cli
- Collection
- Column
- Compiler
- Configurable
- Connection
- Data
- Datadict
- Datatype
- Event
- Eventlistener
- Exception
- Export
- Expression
- File
- Formatter
- Hook
- Hydrate
- I18n
- Import
- Inflector
- Integritymapper
- Lib
- Locking
- Manager
- Migration
- Node
- Null
- Overloadable
- Pager
- Parser
- Plugin
- Query
- Rawsql
- Record
- Relation
- Search
- Sequence
- Spyc
- Table
- Task
- Template
- Transaction
- Tree
- Validator
- View
You are currently viewing the 0.11 branch api documentation.
Switch to 1.0
0.11 Doctrine_Cache_Interface
- Home
- Documentation
- 0.11 API Documentation
- Doctrine_Cache_Interface
Doctrine Cache Interface
Doctrine cache driver interface
Method Summary
| Returns | Name | Description |
|---|---|---|
| mixed | contains | |
| boolean | delete | |
| string | fetch | Note : return value is always "string" (unserialization is done by the core not by the backend) |
| boolean | save | Note : $data is always saved as a string |
Method Details
-
$id cache id (mixed) contains($id)
Test if a cache is available or not (for the given id)
Doctrine_Cache_Interface
-
$id cache id (boolean) delete($id)
Remove a cache record
Doctrine_Cache_Interface
-
$id cache id $testCacheValidity if set to false, the cache validity won't be tested (string) fetch($id, $testCacheValidity = true)
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)
Doctrine_Cache_Interface
-
$id cache id $data data to cache $lifeTime if != false, set a specific lifetime for this cache record (null => infinite lifeTime) (boolean) save($id, $data, $lifeTime = false)
Save some string datas into a cache record
Note : $data is always saved as a string
Doctrine_Cache_Interface




Comments (0) [ add comment ]
No Comments
Add Comment