Service Parameter
Cache providers can be also configured using a specific connection, bucket or collection. Example:
1 # app/config/services.yml
services:
# ...
my_riak_connection_service:
class: "Riak\Connection"
# ...
my_riak_bucket_service:
class: "Riak\Bucket"
# ...
my_memcached_connection_service:
class: "Memcached"
# ...
# app/config/config.yml
doctrine_cache:
providers:
service_bucket_riak_provider:
riak:
bucket_id : "my_riak_bucket_service"
service_connection_riak_provider:
riak:
connection_id: "my_riak_connection_service"
bucket_name: "my_bucket_name"
service_connection_memcached_provider:
memcached:
connection_id: "my_memcached_connection_service"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
See Built-in Cache Providers Reference for all the specific configurations.