ChristopherHX
c04850088f
fix: cache adjust restore order of exact key matches ( #2267 )
...
* wip: adjust restore order
* fixup
* add tests
* cleanup
* fix typo
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit f825e42ce200fc4973c3f28797ffba942d322d38)
2024-11-07 16:25:40 +01:00
Jason Song
71cfa868fa
Support overwriting caches ( #2265 )
...
* feat: support overwrite caches
* test: fix case
* test: fix get_with_multiple_keys
* chore: use atomic.Bool
* test: improve get_with_multiple_keys
* chore: use ping to improve path
* fix: wrong CompareAndSwap
* test: TestHandler_gcCache
* chore: lint code
* chore: lint code
(cherry picked from commit b9382a2c4e6801d136c246a7e30e7ceafaad3ade)
2024-11-07 16:25:26 +01:00
ChristopherHX
d42e8f05fc
fix: docker buildx cache restore not working ( #2236 )
...
* To take effect artifacts v4 pr is needed with adjusted claims
(cherry picked from commit 75e4ad93f4c6ba51a7a64f12335dd0268dd7465a)
2024-11-07 16:25:15 +01:00
Kristoffer
7f7d84b10f
fix: match cache restore-keys
in creation reverse order ( #2153 )
...
* Match cache restore-keys in creation reverse order
* Match full prefix when selecting cache
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-01-20 12:11:50 +00:00
Jason Song
8c7c0f53c1
fix: handle zero size ( #1888 )
2023-07-10 20:35:27 -07:00
ChristopherHX
e597046195
refactor: open boltdb only while using it ( #1879 )
...
* refactor: open boltdb only while using it
* patch
* Update handler_test.go
* Update handler_test.go
* Update handler_test.go
* Update handler.go
* timeout * 10
* pr feedback
* fixup
2023-07-10 16:57:06 +00:00
Jason Song
d77991c95a
Support cache ( #1770 )
...
* feat: port
* fix: use httprouter
* fix: WriteHeader
* fix: bolthold
* fix: bugs
* chore: one less file
* test: test handler
* fix: bug in id
* test: fix cases
* chore: tidy
* fix: use atomic.Int32
* fix: use atomic.Store
* feat: support close
* chore: lint
* fix: cache keys are case insensitive
* fix: options
* fix: use options
* fix: close
* fix: ignore close error
* Revert "fix: close"
This reverts commit d53ea7568ba03908eb153031c435008fd47e7ccb.
* fix: cacheUrlKey
* fix: nil close
* chore: lint code
* fix: test key
* test: case insensitive
* chore: lint
2023-04-28 15:57:40 +00:00