Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipsahli/cacher
Example for an extendable application with hashicorp/go-plugin
https://github.com/philipsahli/cacher
Last synced: 10 days ago
JSON representation
Example for an extendable application with hashicorp/go-plugin
- Host: GitHub
- URL: https://github.com/philipsahli/cacher
- Owner: philipsahli
- Created: 2023-11-03T06:03:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-19T12:26:16.000Z (9 months ago)
- Last Synced: 2024-11-12T01:18:23.973Z (2 months ago)
- Language: Go
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cacher demo
## Build core
go build -o cacher .
## Build & run with plugin-cacher-redis
go build -o cacher-redis ./plugin-cacher-redis
docker run --name redis3 -p 6379:6379 -d redis:5.0.3-alpine
KV_PLUGIN=./cacher-redis ./cacher put host postfinance
KV_PLUGIN=./cacher-redis ./cacher get host## Build & run with plugin-cacher-dynamodb
go build -o cacher-dynamodb ./plugin-cacher-dynamodb
docker run -d -p 8000:8000 amazon/dynamodb-local
aws dynamodb create-table --table-name=MyTable --attribute-definitions AttributeName=key,AttributeType=S --key-schema AttributeName=key,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --endpoint-url http://localhost:8000aws dynamodb scan --table-name=MyTable --endpoint-url http://localhost:8000
KV_PLUGIN=./cacher-dynamodb ./cacher put weather rainy
KV_PLUGIN=./cacher-dynamodb ./cacher get weather