Skip to content

rahultyagidev/peacock

 
 

Repository files navigation

test event parameter test event parameter

Gocache

A simple go based Key:Value in-memory cache which uses a custom tcp protocol for the server

Running the project

go run main.go

or

go build

./gocache

  • For help about run:
./gocache -h  

  • For changing default host and port use the -host and -port option

Default port is 9999

./gocache -host 0.0.0.0 -port 1265

Running using Docker

  • using the docker-compose
docker-compose up -d --build
  • Image can be generated using the Dockerfile
 docker build -t gocache .

Configuring LRU limits

The cache only supports Least Recently Used scheme for removing items once the -max-size limit is reached for cache. It is the maximum number of items that can be stored in the cache.

./gocache -max-size 1000

Client

There is a client library to call the server over tcp

About

A simple gocache with minimal features

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 98.3%
  • Dockerfile 1.1%
  • Other 0.6%