lutece-cache

Automate CDI-based cache patterns for Lutece 8 plugins.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/vanhemsj/lutecepowers --skill lutece-cache
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lutece-cache
Source: https://github.com/vanhemsj/lutecepowers/tree/main/skills/lutece-cache
Command: npx skills add https://github.com/vanhemsj/lutecepowers --skill lutece-cache

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It provides a reusable, CDI-based cache framework for Lutece 8 plugins, reducing database load and improving runtime performance through centralized cache management.

Core Features & Use Cases

  • Integration with AbstractCacheableService (JSR-107) for consistent caching across services.
  • CDI-based initialization and lifecycle management via @PostConstruct and @ApplicationScoped.
  • Centralized cache key builders and safe invalidation through CDI events to keep data fresh.
  • Use in Home/Service layers to transparently get, cache, and invalidate entities and collections.

Quick Start

Create a new cache service by extending AbstractCacheableService, annotate it as @ApplicationScoped, initialize it with initCache in a @PostConstruct method, and wire it into your domain service to perform get/put/remove operations.

Frequently Asked Questions about lutece-cache

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

FAQPage Schema
How do I implement CDI cache in a Lutece 8 plugin?

To implement CDI cache in a Lutece 8 plugin, extend AbstractCacheableService, annotate your service with @ApplicationScoped, and initialize it using initCache within a @PostConstruct method to enable centralized get, put, and remove operations.

What is the best way to manage cache invalidation for Lutece 8 services?

The best way to manage cache invalidation for Lutece 8 services is by using centralized cache key builders and triggering safe invalidation through CDI events, ensuring data remains fresh across your application without manual synchronization.

How does AbstractCacheableService integrate with JSR-107 caching standards?

AbstractCacheableService integrates with JSR-107 caching standards by providing a CDI-based reusable framework, ensuring consistent caching behavior, predictable lifecycle management, and centralized key management across different Lutece 8 plugin services.

Can I configure cache properties at runtime for Lutece 8 plugins?

Yes, you can configure cache properties at runtime for Lutece 8 plugins. The framework supports runtime configurability via the caches.properties file, allowing you to adjust cache behavior dynamically without changing the application code.

When do I need a CDI-based cache framework for plugin development?

You need a CDI-based cache framework for plugin development when your workflows require fast data access, predictable cache invalidation, and reduced database load through centralized management of entities and collections in the service layer.