al8n / stretto

Stretto is a Rust implementation for Dgraph's ristretto (https://github.com/dgraph-io/ristretto). A high performance memory-bound Rust cache.
Apache License 2.0
413 stars 28 forks source link

Use owned variables in examples #49

Closed peter-scholtens closed 1 year ago

peter-scholtens commented 1 year ago

The cache examples now own the data, and not static references, as mentioned in https://github.com/al8n/stretto/issues/48. Also variable names are modified to explain their usage.

al8n commented 1 year ago

Thank you very much!

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: +0.10 :tada:

Comparison is base (2447b07) 83.80% compared to head (870c18c) 83.90%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #49 +/- ## ========================================== + Coverage 83.80% 83.90% +0.10% ========================================== Files 17 17 Lines 1920 1920 ========================================== + Hits 1609 1611 +2 + Misses 311 309 -2 ``` [see 2 files with indirect coverage changes](https://codecov.io/gh/al8n/stretto/pull/49/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Al+Liu) Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Al+Liu). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Al+Liu)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.