Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goenning/go-cache-demo
Demo repository on how to use server side cache in Go
https://github.com/goenning/go-cache-demo
cache go golang
Last synced: 24 days ago
JSON representation
Demo repository on how to use server side cache in Go
- Host: GitHub
- URL: https://github.com/goenning/go-cache-demo
- Owner: goenning
- License: mit
- Created: 2017-03-13T21:10:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T08:19:52.000Z (about 7 years ago)
- Last Synced: 2024-10-10T05:37:31.406Z (about 1 month ago)
- Topics: cache, go, golang
- Language: Go
- Homepage:
- Size: 2.8 MB
- Stars: 38
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server-side cache with Go
Read more about this at [https://goenning.net/2017/03/18/server-side-cache-go/](https://goenning.net/2017/03/18/server-side-cache-go/).
# How to use it
- Clone this repository
- Install glide (https://github.com/Masterminds/glide)
- Run `glide install` while on project root folder
- Run `make run-memory` or `make run-redis` to start the web application
- If you want to use redis, make sure you have a redis server running locally. If you don't start a new redis docker container by running `docker-compose up -d`
- Navigate to `http://localhost:8080`# Demo application
You can see this application running live on [https://go-cache-demo.herokuapp.com/](https://go-cache-demo.herokuapp.com/)
Happy Coding! :)