Skip to content

Commit 6a13ff2

Browse files
authored
Revise README for database support and motivation
Updated README to reflect support for PostgreSQL and clarified motivation.
1 parent 24d0fae commit 6a13ff2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
[![Go](https://github.com/cyberbeast/httpcache/actions/workflows/go.yml/badge.svg)](https://github.com/cyberbeast/httpcache/actions/workflows/go.yml)
44
![coverage](https://raw.githubusercontent.com/cyberbeast/httpcache/badges/.badges/main/coverage.svg)
55

6-
An HTTP transport for Go standard library's HTTP Client that caches HTTP Responses in a local SQLite database to speed up subsequent requests.
6+
An HTTP transport for Go standard library's HTTP Client that caches HTTP Responses in a database to speed up subsequent requests. Currently supported:
7+
1. `sqlite`
8+
2. `postgres` (coming soon)
79

810
## Motivation
911

10-
I was working on an internal tool at work that needed to run an expensive query over HTTP multiple times. Since the HTTP response didn't change between runs, I wrote `httpcache` to cap the maximum latency of making multiple HTTP requests to the latency of the initial cold request.
12+
I was working on an unrelated tool that ran expensive queries over HTTP multiple times. Since the HTTP response didn't change between runs, I wrote `httpcache` to cap the maximum latency of making multiple HTTP requests to the latency of the initial cold request.
1113

1214
## Implementation
1315

0 commit comments

Comments
 (0)