diff options
| author | Jordan Cook <jordan.cook.git@proton.me> | 2022-12-30 12:52:38 -0600 |
|---|---|---|
| committer | Jordan Cook <jordan.cook.git@proton.me> | 2023-03-01 17:36:53 -0600 |
| commit | b24a5dc39ec5cdad94d6546b78b09bf31843f279 (patch) | |
| tree | 9bffb0304ef66b09c86d409e998fe46aeb17c295 /docs/examples.md | |
| parent | 812301ab85a3b54387dcebd7d65407ace2589b9f (diff) | |
| download | requests-cache-history-example.tar.gz | |
Add an example of keeping a history of previously cached response versionshistory-example
Diffstat (limited to 'docs/examples.md')
| -rw-r--r-- | docs/examples.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/examples.md b/docs/examples.md index d193680..e9cb3ce 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -202,6 +202,23 @@ The following scripts can also be found in the ::: +### Response history +```{include} ../examples/history.py +:start-line: 2 +:end-line: 3 +``` + +:::{dropdown} Example +:animate: fade-in-slide-down +:color: primary +:icon: file-code + +[benchmark.py](https://github.com/requests-cache/requests-cache/blob/main/examples/history.py) +```{literalinclude} ../examples/history.py +:lines: 5- +``` +::: + ### Using with GitHub Actions This example shows how to use requests-cache with [GitHub Actions](https://docs.github.com/en/actions). Key points: |
