Skip to main content

Module regex_cache

Module regex_cache 

Source
Expand description

Regex compilation caching for query performance

Provides thread-safe LRU cache for compiled regex patterns to avoid redundant compilation during predicate evaluation (P2-1).

Supports both standard regexes and lookaround patterns (P2-10):

  • Standard patterns use regex::Regex for performance
  • Lookaround patterns ((?=, (?!, (?<=, (?<!) use fancy_regex::Regex

Structs§

RegexCache
Thread-safe LRU cache for compiled regexes

Enums§

CompiledRegex
Compiled regex that supports both standard and lookaround patterns
RegexCompileError
Error type for regex compilation that handles both standard and fancy regex errors

Functions§

get_or_compile_regex
Public API: get or compile a regex