PromptShield logo PromptShield
PromptShield WorkspaceAPI DocsInterfaces

CacheManagerOptions

Defined in: cache.ts:155

Configuration options for initializing CacheManager.

Properties

artifactsDir

artifactsDir: string

Defined in: cache.ts:157

Directory (relative to workspace root) used to persist cache artifacts.

debug?

optional debug: (msg) => void | null

Defined in: cache.ts:160

Optional debug logger hook.

The cache manager assumes:

  • workspaceRoot remains stable during runtime.
  • All relPath values are resolved relative to this root.

fileCount

fileCount: number

Defined in: cache.ts:159

Current repository file count (used for auto mode).

mode

mode: CacheMode

Defined in: cache.ts:158

Cache storage strategy.

workspaceRoot

workspaceRoot: string

Defined in: cache.ts:156

Absolute root of the project workspace.

On this page