go-cache
Go Cache
Generate two files for every cache: a port interface and a Redis-backed implementation.
When to Use
- Create a cache layer for any module
- Redis-backed TTL storage (OTP, sessions, OAuth state)
- Rate limiting storage
- Boolean flag caching (existence checks)
- JSON data caching (structured objects)
Which Variant?
Pick before writing anything:
More from cristiano-pacheco/ai-tools
go-gorm-model
Generate GORM persistence models. Use when creating database models using GORM.
78go-chi-handler
Generate Chi HTTP handlers, use case orchestration, Use for REST endpoint handlers or web http handlers.
26go-usecase
Generate use cases. Use when creating business operations, CRUD use cases, or any Execute-based module operation.
23go-enum
Generate type-safe enums with validation. Use when creating enums, defining constants, or adding enum types.
20go-integration-tests
Generate Go integration tests with real database/infrastructure via itestkit containers. Use when testing use cases against real databases, verifying end-to-end flows, or adding integration test coverage.
20go-service
Generate services. Use for reusable single-responsibility business services or domain services.
18