mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
feat(cache): expose capacity on StatementCache
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user