microsoft / garnet

Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
https://microsoft.github.io/garnet/
MIT License
9.71k stars 459 forks source link

Support cancellation for cache size resizer task. #490

Closed yrajas closed 2 days ago

yrajas commented 5 days ago

Object store size resizer task is currently not cancellable when the server is getting disposed. This change fixes that by having the resizer task accepting a cancellation token to which cancellation is requested when the server object is disposed.