No description
- Go 87.9%
- Makefile 9.7%
- Dockerfile 2.4%
* chore(deps): bump actions/setup-go to v7 Self-hosted CI workflows. * ci: setup-go v7 + cache false |
||
|---|---|---|
| .github | ||
| cmd/module | ||
| deploy | ||
| internal | ||
| test | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .golangci.yml | ||
| CHANGELOG.md | ||
| COMPATIBILITY.md | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| muxcore.json | ||
| README.md | ||
| SECURITY.md | ||
Cache Local
In-memory local read-through cache for the MuxCore storage orchestrator.
A MuxCore sidecar module that implements the cache.local capability via
CacheLayerService (Get / Set / Invalidate). Entries expire after a default TTL;
a background sweeper reclaims expired keys.
How It Works
storage orchestrator ──→ DialCacheLayer ──→ cache-local (gRPC) ──→ in-memory map
No external store. Data is process-local and lost on restart.
Configuration
| Variable | Default | Description |
|---|---|---|
CACHE_LOCAL_GRPC_ADDR |
:9610 |
gRPC listen address |
MUXCORE_GRPC_ADDR |
— | Core mesh address (or --muxcore-mesh-addr) |
MUXCORE_MODULE_ID |
cache-local |
Module ID override (or --muxcore-module-id) |
Quick Start
make build
./cache-local --muxcore-mesh-addr localhost:9090
Core must be reachable (dev: MUXCORE_INSECURE_DISABLE_TLS=true ./muxcored in ../core).
Capability
| Capability | Role |
|---|---|
cache.local |
Canonical — process-local in-memory CacheLayerService |
cache.memory |
Legacy alias for the retired cache-memory dump; same implementation |
See COMPATIBILITY.md. Prefer cache-redis for multi-host shared cache.
License
GPL-3.0