Crate light_cache

source ·
Expand description

A simple, fast and concurrent cache designed for async rust.

§Quick Start

The easiest way to get started with LightCache is to use crate::RefreshCache

Modules§

  • The underlying map used by LightCache. Desinged to be fast and non-blocking for connurrent r/w.
  • A policy augments access to a LightCache instance, managing the entry and eviction of items in the cache.
  • A RefreshCache provides a simple interface for caching values with a time-to-live policy.

Structs§

  • A concurrent hashmap that allows for efficient async insertion of values
  • A concurrent hashmap implementation thats always non-blocking.
  • A RefreshCache provides a simple interface for caching values with a time-to-live policy for any type that maps a key to a value asynchronously

Traits§

  • A Policy augments accsess to a LightCache instance, managing the entry and eviction of items in the cache.