README.md 559 Bytes
Newer Older
Bastien Gounon's avatar
Bastien Gounon committed
1
# Server side
Bastien Gounon's avatar
Bastien Gounon committed
2 3 4
Download the binary, make it executable and provide parameters \
example : `./xcache-flusher -cachedir /tmp/testdir -token mysecretpassword` \
help available with `./xcache-flusher -h`
Bastien Gounon's avatar
Bastien Gounon committed
5 6 7 8

Server will listen on port 8080

# Client side
Bastien Gounon's avatar
Bastien Gounon committed
9
Client just needs to call the DELETE HTTP operation on the server URL with method `flush`. Optionnally provide authentication token in the URL. \
Bastien Gounon's avatar
Bastien Gounon committed
10 11 12
example:
  * with authentication: `curl -X DELETE http://127.0.0.1:8080/flush\?token\=testos`
  * without authentication: `curl -X DELETE http://127.0.0.1:8080/flush`