go-caching
OfficialOptimize Go apps with caching patterns.
Authorgofhir
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers optimize Go applications by implementing efficient caching and pooling strategies, reducing memory allocations and improving performance for expensive operations.
Core Features & Use Cases
- Expression Caching: Implements an LRU cache for compiled FHIRPath expressions to speed up repeated evaluations.
- Object Pooling: Utilizes
sync.Poolfor reusable objects like collections, minimizing garbage collection overhead. - Value Caching: Caches small, immutable integer values to avoid new object creation.
- Use Case: When evaluating complex FHIRPath expressions frequently against many resources, caching the compiled expression significantly speeds up processing. Similarly, reusing collection objects instead of allocating new ones for every intermediate result reduces memory pressure.
Quick Start
Use the go-caching skill to understand how to implement an LRU cache for compiled FHIRPath expressions in Go.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-caching Download link: https://github.com/gofhir/validator/archive/main.zip#go-caching Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.