pub struct PlanCache { /* private fields */ }Expand description
SQL 실행 계획 캐시 (Phase 2: DashMap + 2-level + 통계)
Implementations§
Source§impl PlanCache
impl PlanCache
Sourcepub fn with_default_size() -> Self
pub fn with_default_size() -> Self
기본 크기 (1,000개)
Sourcepub fn with_l2_cache(self, dir: PathBuf) -> Self
pub fn with_l2_cache(self, dir: PathBuf) -> Self
L2 디스크 캐시 활성화
Sourcepub fn stats(&self) -> &CacheStats
pub fn stats(&self) -> &CacheStats
캐시 통계 조회
Auto Trait Implementations§
impl !Freeze for PlanCache
impl !RefUnwindSafe for PlanCache
impl Send for PlanCache
impl Sync for PlanCache
impl Unpin for PlanCache
impl UnsafeUnpin for PlanCache
impl !UnwindSafe for PlanCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more