1
0
mirror of synced 2025-03-21 23:43:53 +03:00

changed $cache to $cacheDriver to be consistent and so that the chapter flows better

This commit is contained in:
phuson 2007-10-01 08:40:20 +00:00
parent 999988fa69
commit 4ae866ddf8

View File

@ -7,7 +7,7 @@
Initializing a new cache driver instance:
<code type="php">
$cache = new Doctrine_Cache_Memcache($options);
$cacheDriver = new Doctrine_Cache_Memcache($options);
</code>
++ Drivers
@ -20,7 +20,7 @@ $servers = array('host' => 'localhost',
'port' => 11211,
'persistent' => true);
$cache = new Doctrine_Cache_Memcache(array('servers' => $servers,
$cacheDriver = new Doctrine_Cache_Memcache(array('servers' => $servers,
'compression' => false));
</code>
@ -36,7 +36,7 @@ The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was
The APC cache driver of Doctrine stores cache records in shared memory.
<code type="php">
$cache = new Doctrine_Cache_Apc();
$cacheDriver = new Doctrine_Cache_Apc();
</code>
@ -49,7 +49,7 @@ Initializing sqlite cache driver can be done as above:
<code type="php">
$conn = Doctrine_Manager::connection(new PDO('sqlite::memory:'));
$cache = new Doctrine_Cache_Sqlite(array('connection' => $conn));
$cacheDriver = new Doctrine_Cache_Sqlite(array('connection' => $conn));
</code>
++ Caching queries