Open bbigras opened 8 years ago
I assume you don't want to use RwLock::write
, right? It would let you get a mutable reference to the LruCache
. We could add a get
-like method that takes &self
and just doesn't update the LRU state.
I assume you don't want to use RwLock::write, right?
Right. I would like to it with RwLock since we can have many read locks at the same time.
I'd accept a pull request that does this.
Something like:
I got: