Memory Cache
Skill by 1999azzar
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1999azzar/memory-cacheWhat This Skill Does
The Memory Cache skill is a robust, Redis-backed storage layer designed for OpenClaw agents that require high-performance, temporary data persistence. Unlike standard file-based storage, this skill leverages the speed of Redis to handle state management, API response caching, and inter-agent communication. It ensures that agents remain stateless by design while providing a structured way to recall previous context or ephemeral data across different execution cycles. By adhering to the mandated 'mema:' namespace convention, the skill provides a clean, predictable way to organize data into categories like context, cache, and state, ensuring that memory cleanup and management are streamlined.
Installation
To integrate this skill into your environment, use the command: clawhub install openclaw/skills/skills/1999azzar/memory-cache. Ensure your environment has python3 installed and a running Redis instance reachable via your REDIS_URL environment variable. After installation, execute pip install -r requirements.txt within the skill directory to satisfy all dependency requirements.
Use Cases
- Agent State Persistence: Maintain conversation history or user preferences across disconnected sessions.
- API Rate Limiting & Optimization: Store frequently requested API results to reduce latency and stay within usage quotas.
- Sub-Agent Communication: Pass structured data between parallel or sequential agent tasks using synchronized shared memory.
- Session Management: Handle authentication tokens or temp session data that needs an automatic TTL (Time-To-Live) expiration.
Example Prompts
- "Cache the response from the search API in
mema:cache:last_searchfor the next 10 minutes." - "Check if there is an existing session context in
mema:context:user_123and retrieve it to continue our task." - "Run a scan to list all keys under the
mema:state:*namespace so I can see which agent tasks are still active."
Tips & Limitations
- Always set a TTL (Time-To-Live) for your data to prevent memory leaks in your Redis database.
- Follow the namespace convention strictly; misuse of namespaces can lead to key collisions in multi-agent environments.
- This skill requires an external dependency (Redis); it is not a standalone storage solution and will fail if the Redis server is unavailable.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-1999azzar-memory-cache": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
newman
Automated API testing with Postman collections via Newman CLI. Use when user requests API testing, collection execution, automated testing, CI/CD integration, or mentions "Postman", "Newman", "API tests", "run collection", or "automated testing".
mema-vault
Secure credential manager using AES-256 (Fernet) encryption. Stores, retrieves, and rotates secrets using a mandatory Master Key. Use for managing API keys, database credentials, and other sensitive tokens.
ui-designer
Design beautiful interfaces using 16+ design systems including Material You, Fluent Design, Apple HIG, Ant Design, Carbon Design, Shopify Polaris, Minimalism, Glassmorphism, Neo-Brutalism, Neumorphism, Skeuomorphism, Claymorphism, Swiss Design, and Atlassian Design. Expert in Tailwind CSS, color harmonics, component theming, and accessibility (WCAG).
mermaid-architect
Generate beautiful, hand-drawn Mermaid diagrams with robust syntax (quoted labels, ELK layout). Use this skill when the user asks for "diagram", "flowchart", "sequence diagram", or "visualize this process".
guardian-wall
Mitigate prompt injection attacks, especially indirect ones from external web content or files. Use this skill when processing untrusted text from the internet, user-uploaded files, or any external source to sanitize content and detect malicious instructions (e.g., "ignore previous instructions", "system override").