protocache

module
v0.0.0-...-7c381ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: Apache-2.0

README ΒΆ

Protocache

Protocache is a lightweight in-memory cache server with gRPC support.

🏁 Getting Started

1. Install Dependencies
  • Go (1.24+)
  • protoc (3.19+)
  • GNU Make (4.0+)
  • Docker (28.0+)
2. Build the binaries
make build-all
3. Run the Server
make run

πŸ–₯️ Using protocachecli

protocachecli is a command-line client for interacting with the cache server.

βœ… Commands
protocachecli -host localhost -port 50051 set foo bar
protocachecli -host localhost -port 50051 get foo
protocachecli -host localhost -port 50051 del foo
protocachecli -host localhost -port 50051 clear

If the value contains binary or non-UTF-8 data, it will be shown in base64 format.

ℹ️ Help
protocachecli --help

πŸ”Œ Using grpcurl

πŸ” List Services
grpcurl -plaintext localhost:50051 list
πŸ“‹ List Methods
grpcurl -plaintext localhost:50051 list cache.CacheService

πŸ§ͺ Testing

βœ… Unit and E2E Tests
make test         # Run all tests
make test-e2e     # Run E2E tests
make bench        # Run benchmarks

🐳 Using Docker

You can build and run Protocache via Docker.

πŸ”§ Build the Docker Image
make docker-build

This uses the image name: patrostkowski/protocache

πŸš€ Run the Server in a Container
make docker-run

This runs the server and exposes port 50051 on your local machine.

License

Protocache is licensed under the Apache License 2.0.

Directories ΒΆ

Path Synopsis
cmd
protocache command
protocachecli command
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL