pub fn new(size: usize, sender: Sender<EtcdWatchRequest>) -> Self {
        Self {
            hashtable: Arc::new(LockFreeCuckooHash::with_capacity(size)),
            lru_queue: Arc::new(Mutex::new(PriorityQueue::new())),
            watch_id_table: Arc::new(LockFreeCuckooHash::with_capacity(size)),
            watch_sender: sender,
        }
    }
/// Create a new `Cache` with specified size.
Create a new `Cache` with specified size.
Create a new ` Cache ` with specified size .
pub fn new(size: usize, sender: Sender<EtcdWatchRequest>) -> Self {
        Self {
            hashtable: Arc::new(LockFreeCuckooHash::with_capacity(size)),
            lru_queue: Arc::new(Mutex::new(PriorityQueue::new())),
            watch_id_table: Arc::new(LockFreeCuckooHash::with_capacity(size)),
            watch_sender: sender,
        }
    }
pub fn new ( size : usize , sender : Sender < EtcdWatchRequest > ) -> Self { Self { hashtable : Arc :: new ( LockFreeCuckooHash :: with_capacity ( size ) ) , lru_queue : Arc :: new ( Mutex :: new ( PriorityQueue :: new ( ) ) ) , watch_id_table : Arc :: new ( LockFreeCuckooHash :: with_capacity ( size ) ) , watch_sender : sender , } }
Create a new `Cache` with specified size.
Create a new ` Cache ` with specified size .
size
usize
sender
Sender<EtcdWatchRequest>