latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

Remove caching layer from the storage interface #60

Closed simo5 closed 3 months ago

simo5 commented 3 months ago

This caching layer was a premature optimization, and cause the interfaces to require mutability in places where it wasn't really warranted, and in the end many callers would end up calling .clone() anyway for various reasons.

Will follow up with other PRs later to further change this.

Jakuje commented 3 months ago

Tested also locally together with #58 and it did not prompt any new issues.