A high-performance probabilistic cache implementation in Go with ghost cache support for intelligent eviction policies.
- Probabilistic admission control
- Ghost cache for optimized re-admission
- Configurable TTL support
- Thread-safe operations
- Memory-aware eviction
- Automatic cleanup of expired entries
- Performance metrics and statistics
git clone https://github.com/abubakardev0/sieve-cache.git
cd sieve-cache
go mod tidy
To verify documentation:
go doc -all sieve
Run the tests to verify functionality:
go test -v ./sieve
- Install Docker.
-
Build the Docker image:
docker build -t sieve-cache .
-
Run the Docker container:
docker run -p 8080:8080 sieve-cache
-
Install dependencies:
go mod tidy
-
Build the application:
go build -o sieve-cache main.go
-
Run the application:
./sieve-cache