File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ sudo: false
1818before_script :
1919 - composer self-update
2020 - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
21- - composer install --dev --prefer-source --no-interaction
21+ - composer install --dev --prefer-dist --no-interaction
2222
2323script :
2424 - php vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -27,18 +27,36 @@ $bundles(
2727``` yaml
2828cache_adapter_doctrine :
2929 providers :
30+ acme_memcached :
31+ type : memcached
32+ persistent : true # Boolean or persistent_id
33+ namespace : mc
34+ hosts :
35+ - { host: localhost, port: 11211 }
36+ acme_redis :
37+ type : redis
38+ hosts :
39+ main :
40+ host : 127.0.0.1
41+ port : 6379
3042 acme_file_system_cache :
43+ type : file_system
3144 extension : ' .fsc'
3245 directory : ' %kernel.root_dir%/var/storage/fs_cache/'
33- type : file_system
46+ acme_php_file_cache :
47+ type : php_file
48+ extension : ' .cache'
49+ directory : ' %kernel.root_dir%/var/storage/'
50+ acme_array_cache :
51+ type : array
3452 acme_apc_cache :
3553 type : apc
3654 namespace : my_ns
3755` ` `
3856
3957### Usage
4058
41- When using a configuration like below, you will get an service with the id ` cache.provider.acme_apc_cache`.
59+ When using a configuration like below, you will get a service with the id ` cache.provider.acme_apc_cache`.
4260` ` ` yaml
4361cache_adapter_doctrine:
4462 providers:
@@ -60,4 +78,4 @@ $item->expiresAfter(3600);
6078$cache->save($item);
6179` ` `
6280
63- [DoctrineAdapter] : https://github.com/php-cache/doctrine-adapter
81+ [DoctrineAdapter] : https://github.com/php-cache/doctrine-adapter
You can’t perform that action at this time.
0 commit comments