You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Gush configuration file, any comments will be lost.
2
+
repo_adapter: github
3
+
issue_tracker: github
4
+
repo_org: php-cache
5
+
repo_name: cache-bundle
6
+
issue_project_org: php-cache
7
+
issue_project_name: cache-bundle
8
+
meta-header: "This file is part of php-cache\\cache-bundle package.\n\n(c) 2015-2015 Aaron Scherer <[email protected]>\n\nThis source file is subject to the MIT license that is bundled\nwith this source code in the file LICENSE."
Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.
6
+
Symfony 2 library providing PSR-6 compliant cache services for the user.
7
+
It also lets you cache your sessions and routes.
7
8
8
9
The respective cache extensions will be required for your project.
9
10
@@ -19,33 +20,19 @@ Redis uses the php redis extension.
19
20
20
21
Run the following in your project root, assuming you have composer set up for your project
21
22
```sh
22
-
composer.phar require aequasi/cache-bundle
23
+
composer.phar require cache/cache-bundle
23
24
```
24
25
25
26
Add the bundle to app/AppKernel.php
26
27
27
28
```php
28
29
$bundles(
29
30
...
30
-
new Aequasi\Bundle\CacheBundle\AequasiCacheBundle(),
31
+
new Cache\CacheBundle\CacheBundle(),
31
32
...
32
33
);
33
-
```
34
-
35
-
Then add parameters (probably in config.yml) for your servers, and options
36
-
37
-
```yml
38
-
aequasi_cache:
39
-
instances:
40
-
default:
41
-
persistent: true # Boolean or persistent_id
42
-
namespace: mc
43
-
type: memcached
44
-
hosts:
45
-
- { host: localhost, port: 11211 }
46
-
```
47
34
48
-
To see all the config options, run `php app/console config:dump-reference aequasi_cache` to view the config settings
35
+
To see all the config options, run `php app/console config:dump-reference cache` to view the config settings
49
36
50
37
51
38
#### Doctrine
@@ -55,16 +42,16 @@ This bundle allows you to use its services for Doctrine's caching methods of met
55
42
If you want doctrine to use this as the result and query cache, add this
56
43
57
44
```yml
58
-
aequasi_cache:
45
+
cache:
59
46
doctrine:
60
47
enabled: true
61
48
metadata:
62
49
instance: default
63
-
entity_managers: [ default ] # the name of your entity_manager connection
50
+
entity_managers: [ default ] # the name of your entity_manager connection
64
51
document_managers: [ default ] # the name of your document_manager connection
65
52
result:
66
53
instance: default
67
-
entity_managers: [ default, read ] # you may specify multiple entity_managers
54
+
entity_managers: [ default, read ] # you may specify multiple entity_managers
68
55
query:
69
56
instance: default
70
57
entity_managers: [ default ]
@@ -75,7 +62,7 @@ aequasi_cache:
75
62
This bundle even allows you to store your session data in one of your cache clusters. To enable:
76
63
77
64
```yml
78
-
aequasi_cache:
65
+
cache:
79
66
session:
80
67
enabled: true
81
68
instance: default
@@ -88,7 +75,7 @@ aequasi_cache:
88
75
This bundle also provides router caching, to help speed that section up. To enable:
89
76
90
77
```yml
91
-
aequasi_cache:
78
+
cache:
92
79
router:
93
80
enabled: true
94
81
instance: default
@@ -103,15 +90,15 @@ To use this with doctrine's entity manager, just make sure you have `useResultCa
"description": "Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types. It also provides functionality for session handler support, and Router support.",
4
+
"description": "Symfony 2 library providing PSR-6 compliant cache services for the user. Many other features.",
0 commit comments