https://github.com/mdevilliers/cache-service
Cache server backed by Redis with a GRPC API
https://github.com/mdevilliers/cache-service
Last synced: 6 months ago
JSON representation
Cache server backed by Redis with a GRPC API
- Host: GitHub
- URL: https://github.com/mdevilliers/cache-service
- Owner: mdevilliers
- Created: 2019-07-25T08:57:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T16:08:06.000Z (over 1 year ago)
- Last Synced: 2025-03-13T17:33:18.906Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 232 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# cache-service
[](https://circleci.com/gh/mdevilliers/cache-service)
POC of a caching service with a GRPC API using Redis as a backing store.
### Local development
To run a local copy of redis :
```
make hack_local_redis
```
To run the local server :
```
make build
./build/bin/cache-service-linux-amd64 server
```
To run the client against the local server :
```
./build/bin/cache-service-linux-amd64 client --address=0.0.0.0:3000
```
To update the generated protobuf files :
```
make install_proto_tools
make proto
```
To generate the mocks :
```
make mocks
```
### Local K8s deployment
Install Kind using the instructions [here](/hack/kind)
```
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
make hack_image_deploy_local
```
To run the client against K8s :
```
make build
kubectl port-forward svc/cache-service-svc-v1 3000:8080
./build/bin/cache-service-linux-amd64 client --address=0.0.0.0:3000
```
Generated by [golang-k8s-template](https://github.com/mdevilliers/golang-k8s-template)