-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: add TTL support #25
base: master
Are you sure you want to change the base?
Commits on Nov 19, 2021
-
galaxycachepb: extend proto with expiration time
Add expiration time in preparation for the TTL feature.
Configuration menu - View commit details
-
Copy full SHA for aeb97c6 - Browse repository at this point
Copy the full SHA aeb97c6View commit details
Commits on Nov 22, 2021
-
TTLs are based on expiration in the LRU - during getting if the value is expired then it is removed from the LRU and we return nothing. This is needed to have short-lived values in a distributed system. To achieve this, expand the `valWithStat` struct with `expire time.Time`. Then, expand all of the related interfaces: - Codecs - `setLRUOnEvicted` - etc. Since the HTTP interface returns in the body raw bytes, send the expiration timestamp with headers. Expand the test in `http/http_test.go` to test whether the keys are being regenerated after the timestamp. Copy over a test from mailgun/groupcache for TTLs in the LRU.
Configuration menu - View commit details
-
Copy full SHA for 3a32041 - Browse repository at this point
Copy the full SHA 3a32041View commit details
Commits on Nov 24, 2021
-
Merge pull request #1 from thanos-community/add_ttl
*: add TTL functionality
Configuration menu - View commit details
-
Copy full SHA for ab6f170 - Browse repository at this point
Copy the full SHA ab6f170View commit details
Commits on Jun 21, 2022
-
*: prepare for multi-key fetch
Upgrade internal interfaces for multi-key fetch: - Use multi-part HTTP request/response for retrieving data about multiple keys. Boundary is randomly generated by Go standard library so this seems like the best path; - Upgrade gRPC interface to have `repeat string Keys` instead of `string Key`. `key` has priority over `keys` but users should use `keys` either way. Signed-off-by: Giedrius Statkevičius <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7265abb - Browse repository at this point
Copy the full SHA 7265abbView commit details -
Merge pull request #2 from thanos-community/prepare_for_multi_key_fetch
*: prepare for multi-key fetch
Configuration menu - View commit details
-
Copy full SHA for 1b81014 - Browse repository at this point
Copy the full SHA 1b81014View commit details -
Switch to Go 1.17 && enable golangci-lint. Signed-off-by: Giedrius Statkevičius <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a89f51 - Browse repository at this point
Copy the full SHA 6a89f51View commit details -
Merge pull request #3 from thanos-community/add_golangci_lint
.github: update workflows
Configuration menu - View commit details
-
Copy full SHA for e89e7e2 - Browse repository at this point
Copy the full SHA e89e7e2View commit details
Commits on Jun 22, 2022
-
* Add `ValueWithTTL` struct for grouping value with time.Time expiration time; * Update interfaces to use it; * Add stub for multiple key retrieval; * Fix golangci-lint errors. Signed-off-by: Giedrius Statkevičius <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9b92dfa - Browse repository at this point
Copy the full SHA 9b92dfaView commit details
Commits on Jul 11, 2022
-
Merge pull request #4 from thanos-community/upgrade_interfaces
*: update interfaces
Configuration menu - View commit details
-
Copy full SHA for 323e89e - Browse repository at this point
Copy the full SHA 323e89eView commit details