Hi! I'm Iman!
Welcome to my Github Profile!
(Generated by Medium's Recent Article)
- Contact me through Email, Twitter, Instagram, LinkedIn in https://imantumorang.com
gotcha: inmemory-cache in Go (Golang) with customizable algorithm
License: MIT License
Hi! I'm Iman!
Welcome to my Github Profile!
TODO
Add Maxmemory management for each of this algorithm
Iโm pretty sure the internal maps require to be wrapped in sync.RWMutex read/write locks
What a nice package you've been worked on! I learn how the algorithm behind the cache works through reading your implementation.
Btw, I have concerning something about the LRU and LFU cache implementation. I can't see the differences between both implementations in lfu.go
and lru.go
file. Is it better if we just merge them into one and let the Options
decide its implementation by init the selected repository?
Could you explain a reason to implement MaxMemory using a simple json/encoding to count the byte size? Because simple json/encoding using at least TWICE memory than actual objects!!! MaxMemory should keep memory usage in boundaries but instead it guarantee than memory boundaries would be breached. MaxMemory not just useless - it is dangerous in current implementation because actual memory usage 3 times more.
Update the documentation (including godoc) to be more proper and understandable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.