/services-lfu-cache

This is a project to learn some elements of go. It is a thread-safe cache algorithm, based on the LFU principle. Also you can define the max heap size the runtime of this cache service may use. The aim is to not include any other package dependencies away from the standard go library to can really learn all the basics.

Primary LanguageGo

run-tests Twitter Follow

About

Project Description

This is a project to learn some elements of go. It is a thread-safe cache algorithm, based on the LFU principle. Also you can define the max heap size the runtime of this cache service may use. The aim is to not include any other package dependencies away from the standard go library to can really learn all the basics.

Architecture

At the moment, nothing to see here :) Later it will use docker to can be integrated as a part-based tcp service to get / set cache elements.

Setup

Install

go mod tidy

Test

go test ./... -cover 

Benchmarks