-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
See Rust API Guidelines on naming.
LRUCache -> LruCache
TinyLFU -> TinyLfu
SampledLFU -> SampledLfu
WTinyLFUCache -> WtinyLfuCache
Also note the inconsitencies:
Lruis used as a prefix butLfuis used a postfix (mostly).WTinyLFUCache and LRUCache have aCache` postfix, the other caches have not.
I suggest:
LruCache
LfuCacheTiny
LfuCacheSampled
LfuCacheTinyWindow
or:
Lru
LfuTiny
LfuSampled
LfuTinyWindow
Also there are getters starting with get_, notably:
get_mru/_mut]() -> mru()/mru_mut()
get_lru/_mut]() -> lru()/lru_mut()
get_max_cost() -> max_cost()
Aliases/inline methods with deprecation warnings can be added to not break dependents.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels