We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9067328 commit fb36fb5Copy full SHA for fb36fb5
README.md
@@ -1,2 +1,28 @@
1
-# DoctrineCachePoolBundle
2
-Doctrine Cache Pool Bundle
+# Doctrine Cache Bundle
+
3
+This bundle registers PSR6 cache services that wraps the doctrine cache.
4
5
+## Configuration and usage
6
7
+```yaml
8
9
+doctrine_cache:
10
+ providers:
11
+ acme_file_system_cache:
12
+ extension: '.fsc'
13
+ directory: '%kernel.root_dir%/var/storage/fs_cache/'
14
+ type: file_system
15
+ acme_apc_cache:
16
+ type: apc
17
+ namespace: my_ns
18
+```
19
20
+``` php
21
22
+/** @var CacheItemPoolInterface $cacheProvider */
23
+$cacheProvider = $this->container->get('doctrine.acme_apc_cache');
24
25
+/** @var CacheItemInterface $item */
26
+$item = $cacheProvider->getItem('cache-key');
27
28
0 commit comments