OpenForm
CLICommands

cache

Last updated on

Manage registry cache

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

Usage

ofm cache <command> [options]

Subcommands

CommandDescription
clearClear all cached registry data
statsShow cache statistics
invalidateInvalidate cache for a specific registry
configShow current cache configuration
resetReset cache configuration to defaults

cache clear

Clear all cached registry data.

ofm cache clear

Output

✓ Cleared 12 cached entries

cache stats

Show cache statistics.

ofm cache stats [options]
ofm cache info [options]

Options

OptionDescription
--jsonOutput as JSON

Output

Cache Statistics

Directory: ~/.open-form/cache
Default TTL: 1h
Disk entries: 12
Session entries: 0
Total size: 45.2 KB

cache invalidate

Invalidate cache for a specific registry.

ofm cache invalidate <namespace>

Arguments

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

Example

ofm cache invalidate @acme

cache config

Show current cache configuration.

ofm cache config [options]

Options

OptionDescription
--jsonOutput as JSON

Output

Cache Configuration

Effective directory: ~/.open-form/cache

Global config:
  TTL: 1h

Project config:
  (not configured)

cache reset

Reset cache configuration to defaults.

ofm cache reset [options]

Options

OptionDescription
--clearAlso clear all cached data

Output

✓ Cache configuration reset to defaults

Default settings:
  TTL: 3600s (1 hour)
  Directory: ~/.open-form/cache

See also

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

On this page