Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhzs/fast-cache
Lightweight, Simple, and High Performance LFU, LRU and ARC Caching
https://github.com/rhzs/fast-cache
cache golang lru nosql rest
Last synced: 8 days ago
JSON representation
Lightweight, Simple, and High Performance LFU, LRU and ARC Caching
- Host: GitHub
- URL: https://github.com/rhzs/fast-cache
- Owner: rhzs
- Created: 2018-06-10T20:41:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-18T11:53:05.000Z (over 6 years ago)
- Last Synced: 2024-11-07T04:41:09.572Z (about 2 months ago)
- Topics: cache, golang, lru, nosql, rest
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fast Cache
Ultra Lightweight, Simple, and High Performance In-Memory Caching Server via REST.
## Features
* Hoshicorp LRU
* Hoshicorp ARC-LRU
* [CCache LRU](github.com/karlseguin/ccache)## Requirements
1. Golang 1.10.2 <
2. Install `dep` to manage Golang dependency## How to run?
You must get dependencies via Dep. You will see vendor folder if success.
```shell
$ dep ensure -update
$ go run main.go
```## How to use?
1. Adding LRU cache of `xyz` with JSON data `{'a':"2", 'c':1}`
```shell
$ curl -X POST -d '{'a':"2", 'c':1}' localhost:8080/api/v1/lru/xyz
```2. Get LRU cache of `xyz`
```shell
$ curl -X GET localhost:8080/api/v1/lru/xyz
```3. Remove LRU cache of `xyz`
```shell
$ curl -X DELETE localhost:8080/api/v1/lru/xyz
```## Credits
Bosan Tech (c) 2018