Comments (4)
主要是因为FIFO实现很简单,对于单一应用(或特定应用场景)来讲,FIFO淘汰算法效果是接近LRU的。
from libshmcache.
明白了,感谢!!
from libshmcache.
肯定LRU好点 最先进去的可能是访问最频繁的
from libshmcache.
LRU is often better than FIFO, but both can be greatly improved on. Doing so concurrently is harder, but has been done:
http://highscalability.com/blog/2016/1/25/design-of-a-modern-cache.html
from libshmcache.
Related Issues (20)
- 是不是不支持并发写的操作,我进行并发写,并且同时写入相同数据,bus_error
- 可以支持配置 key 的size 吗
- 有没有办法遍历缓存的内容那? HOT 6
- 谢谢贡献 HOT 3
- 关于读操作无锁的疑问 HOT 2
- 代码缺陷 HOT 1
- Feature Request: rapidjson serializer HOT 1
- 特性咨询 HOT 1
- 代码问题
- 将其作为共享库编进Nginx的时候报错
- 所有的key-value在读写时公用一个互斥锁,会不会影响效率?
- 多线程安全不
- undefined symbol: iniAnnotationFreeValues
- ERROR - file: shmcache.c, line: 397, malloc -312 bytes fail
- mac build error HOT 1
- 多个进程读取的数据都是全量数据吗?
- Can't build in Alpine docker
- 代码缺陷! HOT 5
- nice work! possible to provide golang binding pls? thx!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libshmcache.