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 this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- 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
Write an Impactful Professional Apology Email
This prompt generates a structured professional apology email adapted to context, preserving credibility and the relationship with the recipient.
Respond to a Difficult Email with Diplomacy and Confidence
A comprehensive prompt to draft a professional, measured response to a difficult email, maintaining control of tone and situation.
Synthetic Conclusion
Conclusion writing
DALL-E Prompt for Automating Tasks
DALL-E, OpenAI's image generation model, can become a powerful lever for automating the creation of recurring visual content. Rather than hiring a graphic designer for every blog visual, YouTube thumbnail, or social media banner, a well-structured prompt allows you to produce consistent images in seconds. Automation relies on standardization: by defining a style, format, and precise constraints in your prompts, you create reusable templates that you can integrate into workflows via the OpenAI API, no-code tools like Make or Zapier, or even Python scripts. This approach is particularly effective for marketing teams producing dozens of visuals weekly, e-commerce merchants needing to generate product lifestyle images, or content creators aiming to maintain a strong visual identity without repetitive manual effort. The key lies in the ability to write prompts precise enough to guarantee consistency across generations, while remaining flexible enough to adapt to different subjects.