A simple generic and concurrent in-memory cache implementation which supports request deduplication.
You may install the package with:
export GOPRIVATE=gitlab.nuculabs.dev/*
go get gitlab.nuculabs.dev/dnutiu/[email protected]Build and run the demo with
go build ./example/cache-demo
go run ./example/cache-demoTo run the tests run
go test ./...