As the .borrow_mut() method on the RwLock used for the expiration map buckets
can panic when called and already borrowed, this change adds non-panicking
alternatives to the caches' update and insert* methods prefixed by try_
to make it possible for library users to handle the error.
As the
.borrow_mut()
method on theRwLock
used for the expiration map buckets can panic when called and already borrowed, this change adds non-panicking alternatives to the caches'update
andinsert*
methods prefixed bytry_
to make it possible for library users to handle the error.Related to #10