stargate-grpc-go-client
stargate-grpc-go-client copied to clipboard
Token cache
Could do with some polish, but this will cut down on the auth spam. Cursory tests show significant throughput/latency gains.
What this PR does:
- Cache auth token
- Read max-age Cache-Control header & set expiration if possible, default to 10 minutes, or honor no-cache/no-store directives
- Refresh within 30 seconds of expiration
Which issue(s) this PR fixes: Fixes #18
Checklist
- [x] Changes manually tested
- [N/A] Automated Tests added/updated
- [N/A] Documentation added/updated
- [x] CLA Signed: DataStax CLA