All Projects → kadnan → GoCache

kadnan / GoCache

Licence: MIT license
A simplest Cache Server based on LRU implementation written in Go

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to GoCache

Algorithm-Implementation
This is our effort to collect the best implementations to tough algorithms. All codes are written in c++.
Stars: ✭ 16 (+6.67%)
Mutual labels:  lru-cache
Olric
Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service.
Stars: ✭ 2,067 (+13680%)
Mutual labels:  lru-cache
disk-lru-cache
💾 Disk LRU cache with persisted journal
Stars: ✭ 21 (+40%)
Mutual labels:  lru-cache
gotcha
[Not Safe For Production] gotcha: inmemory-cache in Go (Golang) with customizable algorithm
Stars: ✭ 13 (-13.33%)
Mutual labels:  lru-cache
elara
Elara DB is an easy to use, lightweight key-value database that can also be used as a fast in-memory cache. Manipulate data structures in-memory, encrypt database files and export data. 🎯
Stars: ✭ 93 (+520%)
Mutual labels:  lru-cache
golib
Open version of common golang libraries useful to many projects.
Stars: ✭ 47 (+213.33%)
Mutual labels:  lru-cache
cache
LRU-based cache package for Go.
Stars: ✭ 25 (+66.67%)
Mutual labels:  lru-cache
lru
LRU cache using go generics
Stars: ✭ 108 (+620%)
Mutual labels:  lru-cache
hyperlru
Tiny & Fast LRU Implementation as possible.
Stars: ✭ 34 (+126.67%)
Mutual labels:  lru-cache
gocache
High performance and lightweight in-memory cache library with LRU and FIFO support as well as memory-usage-based-eviction
Stars: ✭ 15 (+0%)
Mutual labels:  lru-cache
memo-async-lru
Memoize Node.js style callback-last functions, using an in-memory LRU store
Stars: ✭ 17 (+13.33%)
Mutual labels:  lru-cache
methodtools
Expand functools features(lru_cache) to class - methods, classmethods, staticmethods and even for (unofficial) hybrid methods.
Stars: ✭ 57 (+280%)
Mutual labels:  lru-cache
LruClockCache
A low-latency LRU approximation cache in C++ using CLOCK second-chance algorithm. Multi level cache too. Up to 2.5 billion lookups per second.
Stars: ✭ 35 (+133.33%)
Mutual labels:  lru-cache
go-cache-benchmark
Cache benchmark for Golang
Stars: ✭ 47 (+213.33%)
Mutual labels:  lru-cache

Go Cache Server

GoCache is a simple Cache Server based on LRU algorithm which is also used on MemCache.

Setup and Run

  • Clone this repo: https://github.com/kadnan/GoCache.git
  • go run gocached.go lru.go - By Default it runs on port 9000 with the capacity 5.
  • You can also specify port while running: go run gocached.go lru.go -port=9002 -capacity=20

Commands

  • get [keyname] to retrieve a key. If not available it gives a message. For example get name.
  • set [keyname] [value] to set a key. It returns 1. For example set name adnan.

Etcetera

  • This is my first ever Go program and also first ever implementation of LRU Cache Algorithm so do mention mistake where found or come up witha PR request.

  • There is also a sample go client available in the file client.go.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].