Skip to content

Commit

Permalink
doc: clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-prisma committed Dec 11, 2024
1 parent 2d29f08 commit 496f527
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quaint/src/connector/postgres/native/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ impl From<CacheSettings> for PreparedStatementLruCache {

/// An LRU cache that creates and stores query type information rather than prepared statements.
/// Queries are identified by their content with tracing information removed (which makes it
/// possible to cache them at all) and returned as instances of [`TypedQuery`]. The caching
/// behavior is implemented in [`get_query`](Self::get_query), while statements returned from
/// [`get_statement`](Self::get_statement) are always freshly prepared, because statements cannot
/// be re-used when tracing information is present.
/// possible to cache traced queries at all) and returned as instances of [`TypedQuery`]. The
/// caching behavior is implemented in [`get_query`](Self::get_query), while statements returned
/// from [`get_statement`](Self::get_statement) are always freshly prepared, because statements
/// cannot be re-used when tracing information is present.
#[derive(Debug)]
pub struct TracingLruCache {
cache: InnerLruCache<Arc<QueryMetadata>>,
Expand Down

0 comments on commit 496f527

Please sign in to comment.