mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-02-15 12:20:00 +00:00
feat(cache): expose capacity on StatementCache
This commit is contained in:
parent
8600e5d9d2
commit
8d24dfc0ef
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user