You are browsing a version that is no longer maintained. |
Built-in Cache Providers Reference
This is the reference of all the built-in cache providers and their configuration options:
chain
providers
- The list of service ids of Doctrine Cache Providers to use. Put the fastest providers first (e.g.
array
cache) and you can skipdoctrine_cache.providers
.
couchbase
connection_id
hostnames
bucket_name
username
password
- Couchbase connection service id Couchbase hostname list Couchbase bucket name Couchbase username Couchbase password
mongodb
connection_id
collection_id
server
database_name
collection_name
- MongoClient service id MongoCollection service id mongodb server uri mongodb database name mongodb collection name
memcache
connection_id
servers
Memcache connection service id Server list
*
server
host
, Memcache hostport
, Memcache port
memcached
connection_id
servers
Memcache connection service id Server list
*
server
host
, Memcached hostport
, Memcached port
redis
connection_id
host
port
password
timeout
database
persistent
- Redis connection service id Redis host Redis port Redis password Redis connection timeout Redis database selection (integer) Whether to use persistent connection or not (bool)
predis
client_id
scheme
host
port
password
timeout
database
options
- Provide a client service id to skip the client creation by the bundle (optional, should be used for advanced configuration) Connection scheme (tcp) Redis host Redis port Redis password Redis connection timeout Redis database selection (integer) Array of predis client options
riak
connection_id
bucket_id
host
port
bucket_name
bucket_property_list
Riak\Connection service id Riak\Bucket service id Riak host Riak port Riak bucket name Riak bucket configuration (property list)
allow_multiple: false
, riak bucket allow multiple configurationn_value: 1
, riak bucket n-value configuration
sqlite3
connection_id
file_name
table_name
- SQLite3 connection service id SQLite3 database file name Cache table name