Custom Providers

You can also register your own custom cache drivers:

1# app/config/services.yml services: my_custom_provider_service: class: "MyCustomType" # ... # app/config/config.yml doctrine_cache: custom_providers: my_custom_type: prototype: "my_custom_provider_service" definition_class: "MyCustomTypeDefinition" # optional configuration providers: my_custom_type_provider: my_custom_type: config_foo: "foo" config_bar: "bar"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Definition class is a optional configuration that will parse option arguments given to your custom cache driver. See CacheDefinition code.