al8n / caches-rs

This is a Rust implementation for popular caches (support no_std).
104 stars 14 forks source link

Make custom hashers actually usable #18

Closed vlovich closed 1 year ago

vlovich commented 1 year ago

Previously the functions for TinyLFU to construct with custom hashes were unavailable, making it impossible to actually construct the caches with custom hashers. Rearrange the code so that constructors are available for custom hashers when using the builder.