feat(cache): expose capacity on StatementCache

This commit is contained in:
Ryan Leckey 2020-06-25 03:43:31 -07:00
parent 8600e5d9d2
commit 8d24dfc0ef

View File

@ -58,4 +58,9 @@ impl<T> StatementCache<T> {
pub fn contains_key(&mut self, k: &str) -> bool {
self.inner.contains_key(k)
}
/// Returns the maximum number of statements the cache can hold.
pub fn capacity(&self) -> usize {
self.inner.capacity()
}
}