memory-cache

Manage Redis temporary storage with namespaced keys and TTL.

2|1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/simplefarmer69/ape-claw --skill memory-cache
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-cache
Source: https://github.com/simplefarmer69/ape-claw/tree/main/data/forge-skills/clawhub-memory-cache
Command: npx skills add https://github.com/simplefarmer69/ape-claw --skill memory-cache

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires redis, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust and efficient temporary storage system for agents, enabling them to save state, cache data, and share information seamlessly.

Core Features & Use Cases

  • Agent State Management: Persist and retrieve agent session data reliably.
  • API Result Caching: Speed up operations by caching frequently accessed API responses.
  • Inter-Agent Communication: Facilitate data sharing between different sub-agents.

Quick Start

Use the memory-cache skill to set the value of 'my-key' to 'my-value' with a time-to-live of one hour.

Frequently Asked Questions about memory-cache

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage agent state and cache API results for OpenClaw agents?

Agent state management and API result caching for OpenClaw agents are handled by a high-performance temporary storage system using Redis, which supports namespaced keys and session context caching to reliably persist and retrieve session data.

Does agent session caching require a specific environment setup to work with Redis?

Agent session caching with Redis requires Python 3 installed and a configured REDIS_URL environment variable to enable the temporary storage system to connect and manage data successfully.

What is the best way to share data between sub-agents during a session?

Sharing data between sub-agents is achieved by using the memory-cache system to store and retrieve values with namespaced keys, allowing different agents to access the same cached session context efficiently.

How do I set a time-to-live for cached agent data in Redis?

To set a time-to-live for cached agent data, you configure the TTL parameter when storing the value, ensuring the temporary storage automatically expires the data after the specified duration like one hour.

Can I use Redis for temporary data storage without persistent database dependencies?

Redis serves as the sole dependency for temporary data storage, enabling high-performance caching and state management without requiring an additional persistent database layer for your agents.