bakbon 0.1.2

BakBon is an infrastructure microkernel library in Rust that provides generic building blocks (Router, Registry, Balancer, Queue, Gateway, Cache, Middleware, Service/Processor) for message‑driven distributed systems.
Documentation
use super::{
    Cache,
    Eviction,
    Store,
};

#[derive(Default)]
pub struct Builder {
    store:    Store,
    eviction: Eviction,
}

impl Builder {
    pub fn eviction_policy(mut self, policy: Eviction) -> Self {
        self.eviction = policy;
        self
    }

    pub fn build(self) -> Cache {
        Cache {
            store:    self.store,
            eviction: self.eviction,
        }
    }
}