Module storage_lru

Source
Expand description

LRU-based implementation of OAuth request storage (requires lru feature). LRU-based implementation of the OAuthRequestStorage trait.

This module provides an in-memory implementation of OAuth request storage using an LRU (Least Recently Used) cache. This is useful for scenarios where you want to cache OAuth requests with automatic eviction of least recently used entries when the cache reaches its capacity limit.

The implementation is thread-safe and can be used in concurrent environments where multiple async tasks need to access the OAuth request storage simultaneously.

Structsยง

LruOAuthRequestStorage
An LRU-based implementation of OAuthRequestStorage that maintains a fixed-size cache of OAuth requests.