Cache CLI Commands
Thepraisonai-ts CLI provides the cache command for managing cached values with file-based persistence.
Commands Overview
| Command | Description |
|---|---|
cache set <key> <value> | Cache a value |
cache get <key> | Get cached value |
cache delete <key> | Delete cached entry |
cache list | List all cached entries |
cache stats | Show cache statistics |
cache clear | Clear all cache entries |
cache help | Show help |
Set a Value
Cache a key-value pair:Get a Value
Retrieve a cached value:Delete a Value
Remove a cached entry:List All Entries
View all cached items:Cache Statistics
View cache stats:Clear All
Remove all cached entries:Options
| Option | Description | Default |
|---|---|---|
--ttl <seconds> | Time-to-live for cache entry | No expiration |
--json | JSON output | false |
Cache Location
Cache files are stored in:Use Cases
API Response Caching
Session Tokens
Config Values
Related
- Database CLI - Persistent database storage
- Memory CLI - Agent memory management

