Demo repository on how to use server side cache in Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cache
.gitignore
LICENSE
Makefile
Procfile
README.md
docker-compose.yml
favicon.ico
glide.lock
glide.yaml
main.go
middleware.go

README.md

Server-side cache with Go

Read more about this at 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/

Happy Coding! :)