Skip to content

Added TTL-cache and metrics

Choose a tag to compare

@vpapidokha vpapidokha released this 31 Mar 16:26
· 9 commits to main since this release
1aaafa0
Added TTL-cache for the lease endpoint and metrics (#4)

* Fixed client to work properly

* Fixed client response status handling

* Added ttl-cache for the lease endpoint to lower storage requests count

* Added metrics

* Moved private function to the bottom

* Added timeout configuration to the server setup

* Moved initialization of cache out of goroutines

* Updated metrics labels with constants

* Added error handling

---------

Co-authored-by: Vladyslav Papidokha <vladyslav.papidokha@gmail.com>