CLICommands
cacheLast updated on
Last updated on
Manage registry cache
Manages the registry data cache used to speed up registry operations.
Usage
ofm cache <command> [options]Subcommands
| Command | Description |
|---|---|
clear | Clear all cached registry data |
stats | Show cache statistics |
invalidate | Invalidate cache for a specific registry |
config | Show current cache configuration |
reset | Reset cache configuration to defaults |
cache clear
Clear all cached registry data.
ofm cache clearOutput
✓ Cleared 12 cached entriescache stats
Show cache statistics.
ofm cache stats [options]
ofm cache info [options]Options
| Option | Description |
|---|---|
--json | Output as JSON |
Output
Cache Statistics
Directory: ~/.open-form/cache
Default TTL: 1h
Disk entries: 12
Session entries: 0
Total size: 45.2 KBcache invalidate
Invalidate cache for a specific registry.
ofm cache invalidate <namespace>Arguments
| Argument | Description |
|---|---|
namespace | Registry namespace to invalidate (e.g., @acme) |
Example
ofm cache invalidate @acmecache config
Show current cache configuration.
ofm cache config [options]Options
| Option | Description |
|---|---|
--json | Output 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
| Option | Description |
|---|---|
--clear | Also clear all cached data |
Output
✓ Cache configuration reset to defaults
Default settings:
TTL: 3600s (1 hour)
Directory: ~/.open-form/cache