gofr-dev / gofr-dev/gofr

Implement Unified Cache Layer

Open
#1,992 6 comments 0 reactions 1 assignee Claimed by @Umang01-hash View on GitHub
enhancement gofr-soc
Dominant language
Go
Stars
20.9k
Forks
1.8k
Avg merge
5d 18h
Merged PRs (30d)
39

Description

### **Goal**

Implement a **unified caching layer** under `pkg/cache` that is:

- Simple to use
- Production-ready
- Configurable and extensible
- Integrated with observability tooling

---

### Deliverables

- Core Cache Interface
- In-Memory Backend
- Redis Backend
- Observability Wrapper
- Logging: Log each operation and failure with context.
- Tracing: Wrap backend calls in OpenTelemetry spans.
- Metrics: Emit Prometheus metrics for operations, latencies, and errors.
- Configuration Support
Support runtime configuration and environment-based backend switching.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.