synnax icon indicating copy to clipboard operation
synnax copied to clipboard

Aspen - Improve Lease Setting Option

Open emilbon99 opened this issue 1 year ago • 0 comments

The current syntax for the lease option for kv.Set is error prone and needs to be improved. Instead of requiring the leaseholder to be passed as the first option, we should use an options style pattern instead that that does an interface assertion instead. This will make the code much more robust, will enable us to add additional options to aspen and pass options to the underlying key-value store.

emilbon99 avatar Apr 09 '23 15:04 emilbon99