Commit 4ae866dd authored by phuson's avatar phuson

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

parent 999988fa
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
Initializing a new cache driver instance: Initializing a new cache driver instance:
<code type="php"> <code type="php">
$cache = new Doctrine_Cache_Memcache($options); $cacheDriver = new Doctrine_Cache_Memcache($options);
</code> </code>
++ Drivers ++ Drivers
...@@ -20,7 +20,7 @@ $servers = array('host' => 'localhost', ...@@ -20,7 +20,7 @@ $servers = array('host' => 'localhost',
'port' => 11211, 'port' => 11211,
'persistent' => true); 'persistent' => true);
$cache = new Doctrine_Cache_Memcache(array('servers' => $servers, $cacheDriver = new Doctrine_Cache_Memcache(array('servers' => $servers,
'compression' => false)); 'compression' => false));
</code> </code>
...@@ -36,7 +36,7 @@ The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was ...@@ -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. The APC cache driver of Doctrine stores cache records in shared memory.
<code type="php"> <code type="php">
$cache = new Doctrine_Cache_Apc(); $cacheDriver = new Doctrine_Cache_Apc();
</code> </code>
...@@ -49,7 +49,7 @@ Initializing sqlite cache driver can be done as above: ...@@ -49,7 +49,7 @@ Initializing sqlite cache driver can be done as above:
<code type="php"> <code type="php">
$conn = Doctrine_Manager::connection(new PDO('sqlite::memory:')); $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> </code>
++ Caching queries ++ Caching queries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment