Skip to content

Commit

Permalink
Update confusing documentation of Pool::use_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Jun 21, 2017
1 parent c3324a6 commit 6542d95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/conn/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ impl Pool {
})
}

/// A way to turn off pool level statments cache (on by default).
/// A way to turn off searching for cached statement (on by default).
///
/// If turned on, then calls to `Pool::{prepare, prep_exec, first_exec}` will search for cached
/// statement through all connections in the pool. Useless if the value of the `stmt_cache_size`
/// option is 0.
pub fn use_cache(&mut self, use_cache: bool) {
self.use_cache = use_cache;
}
Expand Down

0 comments on commit 6542d95

Please sign in to comment.