Zoupers Zou
49710c8504
fixes #2689 Make the external url of cache server configurable if necessary ( #2690 )
...
* Make the external url of cache server configurable if necessary
Signed-off-by: Zoupers <qy@zouper.cn >
* optimize code and doc and fix test and add test
Signed-off-by: Zoupers <qy@zouper.cn >
* optimize code and adjust description
Signed-off-by: Zoupers <qy@zouper.cn >
---------
Signed-off-by: Zoupers <qy@zouper.cn >
Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com >
2025-03-05 00:04:23 +00:00
ChristopherHX
f825e42ce2
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>
2024-03-29 02:07:20 +00:00
Jason Song
b9382a2c4e
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
2024-03-28 16:42:02 +00: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