DEV Community

loading...

Discussion on: Cloning Memcached with Go

Collapse
theodesp profile image
Theofanis Despoudis

So is this an LRU cache?

Collapse
healeycodes profile image
Andrew Healey Author

Hi! It’s an LRU cache with expire times, wrapped by an API.

The cache also provides methods similar to memcached like increment/decrement, and append/prepend for array-like objects.

Collapse
omarcham96 profile image
Omar Chammaa

Minor typo: In the second paragraph, you write "...Least Frequently Used (LRU) cache by hand before.". It's Least Recently Used.

But yeah I've done a similar thing where I coded up a Redis server in Python. It had minimal commands like SET, DELETE, GET, EXPIRE... It was quite fun :) I plan on also trying it in Go at some point.

Thread Thread
healeycodes profile image
Andrew Healey Author

Thanks Omar πŸ‘

Some comments have been hidden by the post's author - find out more