Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Memcached to 2.5 #49

Open
wants to merge 11 commits into
base: release/v2.5
Choose a base branch
from
Prev Previous commit
docker/README.md: Enh. Memcached expect scripts
adriendupuis committed Mar 30, 2020
commit 001f3f251c8c0e08cbe2b82b062ab7ba8ff50d4d
7 changes: 4 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -71,8 +71,8 @@ URLs and Command Lines
- See eZ HTTP Cache bundle info: `docker-compose exec apache composer show ezsystems/ezplatform-http-cache;`
- See eZ Solr SE bundle info: `docker-compose exec apache composer show ezsystems/ezplatform-solr-search-engine;`
- Clear eZ caches: `docker-compose exec --user www-data apache sh -c "php bin/console cache:clear;";`
- Clear eZ caches when using Redis: `docker-compose exec --user www-data apache sh -c "php bin/console cache:clear; php bin/console cache:pool:clear cache.redis;";`
- Clear eZ caches when using Memcached: `docker-compose exec --user www-data apache sh -c "php bin/console cache:clear; php bin/console cache:pool:clear cache.memcached;";`
- Clear eZ caches when using Redis: `docker-compose exec --user www-data apache sh -c "php bin/console cache:clear; php bin/console cache:pool:clear cache.redis;";`
- Clear eZ caches when using Memcached: `docker-compose exec --user www-data apache sh -c "php bin/console cache:clear; php bin/console cache:pool:clear cache.memcached;";`
- Open a shell into container as root: `docker-compose exec apache bash;`
- Open a shell into container as www-data: `docker-compose exec --user www-data apache bash;`
* Varnish
@@ -103,7 +103,8 @@ URLs and Command Lines
- Open Redis CLI: `docker-compose exec redis redis-cli;`
- Open a shell into container: `docker-compose exec redis bash;`
* Memcached
- Get stats: `expect -c 'spawn docker-compose exec apache bash; send "telnet memcached 11211\r"; send "stats\r"; expect "END" { puts $expect_out(0,string); }; send "quit\r"; send "exit\r";';`
- Get stats: `expect -c 'spawn docker-compose exec apache bash; send "telnet memcached 11211\r"; send "stats\r"; expect "END"; send "quit\r"; send "exit\r";';`
- Delete all keys: `expect -c 'spawn docker-compose exec apache bash; send "telnet memcached 11211\r"; send "flush_all\r"; expect "OK"; send "quit\r"; send "exit\r";';`
* TODO: Solr
- Get Solr version: `docker-compose exec solr bin/solr version;`
- Follow Solr logs: `docker-compose logs --follow solr;`