Skip to content

Commit b43a9e5

Browse files
authored
Update README.md
1 parent 6b01317 commit b43a9e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,23 @@ curl http://localhost:8080
4545
{"url":"https://r2.wamellow.com/blahaj/wAuI4n.webp"}
4646
```
4747

48+
---
49+
### Statistics
50+
4851
To see how many files are currently in the cache (any file from the bucket that starts with `FILE_PREFIX`), make a [GET request to the `/stats`](https://transgirl.wamellow.com/stats) endpoint.
4952

5053
```sh
5154
curl http://localhost:8080/stats
5255
{"file_count": 242}
5356
```
5457

58+
---
59+
### Refreshing
60+
5561
To refresh the cache, make a [POST request to the `/refresh`](https://transgirl.wamellow.com/refresh) endpoint.
5662
As authorization header, you need to provide the `Bearer` token that you set in the `AWS_SECRET_ACCESS_KEY` environment variable.
5763

5864
```sh
5965
curl -X POST http://localhost:8080/refresh \
6066
-H "Authorization: Bearer <your-secret-access-key>"
61-
```
67+
```

0 commit comments

Comments
 (0)