Service Parameter
Cache providers can be also configured using a specific connection, bucket or collection. Example:
# 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"
See Built-in Cache Providers Reference for all the specific configurations.