https://github.com/kambahr/go-webcache
A simple, lightweight Cache Manager for Go websites.
https://github.com/kambahr/go-webcache
cache golang-websites html mod page webcache
Last synced: 5 days ago
JSON representation
A simple, lightweight Cache Manager for Go websites.
- Host: GitHub
- URL: https://github.com/kambahr/go-webcache
- Owner: kambahr
- License: unlicense
- Created: 2021-04-07T03:20:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T11:18:57.000Z (about 2 years ago)
- Last Synced: 2024-06-20T05:21:42.186Z (over 1 year ago)
- Topics: cache, golang-websites, html, mod, page, webcache
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Cache Manager for Golang websites
## Webcache is a simple, lightweight Cache Manager for Golang websites.
Cache html, image, css, javascript, and other files.
Set the time duration globally and/or for each file.
### Run the test sample
Build the test project and navigate to http://localhost:8005/mypage.htm.
#### Run the test sample outside of $GOPATH
- Start a shell window
- cd <to any directory (other than $GOPATH)>
- git clone https://github.com/kambahr/go-webcache.git && cd go-webcache/test
- go mod init go-webcache/test
- go mod tidy
- go mod vendor
- go build -o cacheDemo && ./cacheDemo
Navigate to http://localhost:8005/mypage.html.