Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pobyzaarif/go-cache
Golang cache library/adapter with TTL implementation, key:value store using memory (Memcached), and Redis.
https://github.com/pobyzaarif/go-cache
arc-cache cache golang golang-cache memcached redis
Last synced: 10 days ago
JSON representation
Golang cache library/adapter with TTL implementation, key:value store using memory (Memcached), and Redis.
- Host: GitHub
- URL: https://github.com/pobyzaarif/go-cache
- Owner: pobyzaarif
- License: gpl-3.0
- Created: 2024-07-05T08:29:03.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T08:18:01.000Z (4 months ago)
- Last Synced: 2024-08-14T11:41:11.678Z (4 months ago)
- Topics: arc-cache, cache, golang, golang-cache, memcached, redis
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-cache
Golang cache library/adapter with TTL implementation, key:value store using memory (Memcached), and Redis.
- You can use memory cache when you run the app in a single machine/local env, temporary mode
- Use Redis when you need persistent cache data## Implementation
Just take a look at the test file ( *_test.go )## Run test
```
go test -count=1 -coverprofile=coverage.out -coverpkg=./... && go tool cover -html=coverage.out -o cover.html
```