pub enum Driver {
Memory,
File,
Redis,
}Expand description
Which backend to build, and what it needs.
Variants§
Memory
Process-local. Fast, and lost on restart — and not shared between workers, which matters for rate limiting.
File
One file per key under CacheConfig::path.
Redis
A Redis server reached over RESP.
Implementations§
Trait Implementations§
impl Eq for Driver
impl StructuralPartialEq for Driver
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnsafeUnpin for Driver
impl UnwindSafe for Driver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more