Expand description
Shared components and utils for foyer.
Modules§
- assert
- Allow to enable debug assertions in release profile with feature “strict_assertion”.
- asyncify
- The util that convert the blocking call to async call.
- bits
- The bitwise utils.
- buf
- The
bytes::Buf
andbytes::BufMut
extensions. - code
- The trait for the key and value encoding and decoding.
- event
- Components for monitoring internal events.
- future
- Future extensions.
- hasher
- Provisioned hashers.
- metrics
- The shared metrics for foyer.
- properties
- Entry-level properties.
- rate
- A rate limiter that returns the wait duration for limitation.
- rated_
ticket - A ticket-based rate limiter.
- runtime
- A runtime that automatically shutdown itself on drop.
- utils
- Useful helpers.
Macros§
- strict_
assert - Use
debug_assert!
by default. Useassert!
when feature “strict_assertions” is enabled. - strict_
assert_ eq - Use
debug_assert_eq!
by default. Useassert_eq!
when feature “strict_assertions” is enabled. - strict_
assert_ ne - Use
debug_assert_ne!
by default. Useassert_ne!
when feature “strict_assertions” is enabled.