Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Cachew (pronounced "cashew") is a tiered, protocol-aware, caching HTTP proxy for

### Git

Caches Git repositories with two complementary techniques:
Caches Git repositories with three complementary techniques:

1. **Snapshots** — periodic `.tar.zst` archives that restore 4–5x faster than `git clone`.
2. **Pack caching** — passthrough caching of packs from `git-upload-pack` for incremental pulls.
3. **Incremental pull-through**: when the mirror lacks a wanted object, fetches only the missing delta from upstream and serves the pack locally instead of forwarding the whole request. On by default; set `incremental-pullthrough = false` to disable.

Redirect Git traffic through cachew:

Expand All @@ -26,8 +27,10 @@ cachew git restore https://github.com/org/repo ./repo

```hcl
git {
snapshot-interval = "1h"
repack-interval = "1h"
snapshot-interval = "1h"
repack-interval = "1h"
incremental-pullthrough = true # default; false disables incremental pull-through
incremental-fetch-timeout = "2m" # default
}
```

Expand Down
427 changes: 427 additions & 0 deletions hack/cachew-incremental-report.sh

Large diffs are not rendered by default.

Loading