其他
带锁的Map
<span><span style="font-size: 11pt;-en-clipboard:true;">Oscache</span></span><br>
<span style="color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 1px; line-height: 19.9111099243164px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">leveldb</span>
还可分为堆内缓存和堆外缓存
优点<br>
<span><span style="font-size: 11pt;-en-clipboard:true;">不需要序列化</span></span><br>
<span><span style="font-size: 11pt;-en-clipboard:true;">速度最快</span></span>
节省内网带宽
缺点
<span><span style="font-size: 11pt;-en-clipboard:true;">大小受限于本机内存</span></span>
GC暂停时间会变长
分布式中无法保证数据统一性
违背了分层架构设计的无状态准则