Skip to main content
The praisonai-ts CLI provides the cache command for managing cached values with file-based persistence.

Quick Start

1

Simple Usage

2

With Configuration


Commands Overview

Set a Value

Cache a key-value pair:
Example Output:

Get a Value

Retrieve a cached value:
Example Output:
Cache Miss Output:
JSON Output:

Delete a Value

Remove a cached entry:

List All Entries

View all cached items:
Example Output:

Cache Statistics

View cache stats:
Example Output:
JSON Output:

Clear All

Remove all cached entries:
Example Output:

Options

Cache Location

Cache files are stored in:
Each file contains:

Use Cases

API Response Caching

Session Tokens

Config Values

Cache

SDK cache module

Database CLI

Persistent storage

Memory CLI

Agent memory