cache

Last updated on

Manage registry cache

Manages the registry data cache used to speed up registry operations.

Usage

asterdoc cache <command> [options]

Subcommands

CommandDescription
clearClear all cached registry data
statsShow cache statistics (alias: info)
invalidateInvalidate cache for a specific registry
configShow current cache configuration
resetReset cache configuration to defaults

cache clear

Clear all cached registry data.

asterdoc cache clear

Output

✓ Cleared 12 cached entries

cache stats

Show cache statistics.

asterdoc cache stats [options]

asterdoc cache info is an alias.

Options

OptionDescription
--jsonOutput as JSON

Output

Cache Statistics

Directory: ~/.asterdoc/cache
Default TTL: 1h
Disk entries: 12
Total size: 45.2 KB

cache invalidate

Invalidate cache for a specific registry.

asterdoc cache invalidate <namespace>

Arguments

ArgumentDescription
namespaceRegistry namespace to invalidate (e.g., @acme)

Example

asterdoc cache invalidate @acme

cache config

Show current cache configuration.

asterdoc cache config [options]

Options

OptionDescription
--jsonOutput as JSON

Output

Cache Configuration

Effective directory: ~/.asterdoc/cache

Global config:
  TTL: 1h

Project config:
  (not configured)

cache reset

Reset cache configuration to defaults.

asterdoc cache reset [options]

Options

OptionDescription
--clearAlso clear all cached data

Output

✓ Cache configuration reset to defaults

Default settings:
  TTL: 3600s (1 hour)
  Directory: ~/.asterdoc/cache

See also

  • configure - Interactive configuration wizard
  • reset - Reset CLI to factory defaults

On this page