# Cache

Functions and classes for managing the activation cache.

---

## Configuration

::: lmprobe.cache.set_cache_backend
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.set_cache_limit
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.set_cache_dtype
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.enable_cache_logging
    options:
      show_root_heading: true
      show_source: false

---

## Inspection

::: lmprobe.cache.cache_info
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.CacheInfo
    options:
      show_root_heading: true
      show_source: false
      heading_level: 3

::: lmprobe.cache.ModelCacheInfo
    options:
      show_root_heading: true
      show_source: false
      heading_level: 3

::: lmprobe.cache.discover_cached
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.CachedPromptInfo
    options:
      show_root_heading: true
      show_source: false
      heading_level: 3

---

## Cache operations

::: lmprobe.cache.clear_cache
    options:
      show_root_heading: true
      show_source: false

::: lmprobe.cache.invalidate_extraction_cache
    options:
      show_root_heading: true
      show_source: false

---

## CachedExtractor

::: lmprobe.cache.CachedExtractor
    options:
      show_root_heading: true
      show_source: false
      heading_level: 3
      members_order: source
