P
⚡ProductiviteAdvancedAll AIs

Redis caching service

Improve performance with a Redis caching layer

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Implement a caching service in [LANGUAGE] using Redis to cache [DATA_TYPE] results. The service should include: get/set/delete methods with configurable TTL, automatic serialization/deserialization, a cache-aside pattern, connection error handling with fallback, and hit/miss ratio metrics.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Use Cases

Improve performance with a Redis caching layer

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pensez à ajouter un mécanisme de nettoyage périodique via `SCAN` pour éviter l’accumulation de clés expirées si les TTL sont hétérogènes. Pour la sérialisation, préférez `json` ou `msgpack` à `pickle` pour garantir l’interopérabilité et éviter les risques de sécurité.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

⚡ProductiviteIntermediateAll AIs

Punchy Introduction

Introduction Writing

341
⚡ProductiviteBeginnerAll AIs

Prompt to Write a Professional Quote Request Email

A complete prompt to generate a structured, professional and customizable quote request email adapted to your industry and recipient.

334
⚡ProductiviteBeginnerAll AIs

Convert CSS to Tailwind

Migrate from standard CSS to Tailwind CSS

343
⚡ProductiviteAdvancedAll AIs

Probability Calibration

Improve the reliability of predicted probabilities

369