<p>Is there an equivalent to Hazelcast for Go out there? One that isn't just a distributed cache like memcache or (kinda) Reddis, but also provides easy use with native types (map, slice, etc...) and can be embedded in an application instead of needing to be run along side the app? </p>
<p>If not, would such a tool be something people would be interested in? </p>
<hr/>**评论:**<br/><br/>Justinsaccount: <pre><p>Groupcache?</p></pre>jonbonazza: <pre><p>Groupcache is definitely interesting, but it is closer to memcache than hazelcast. While it is embeddable, It isn't interfaced with native types and you have restrictions like this:</p>
<blockquote>
<p>does not support versioned values. If key "foo" is value "bar", key "foo" must always be "bar". There are neither cache expiration times, nor explicit cache evictions. Thus there is also no CAS, nor Increment/Decrement. This also means that groupcache....</p>
</blockquote>
<p>Also, peer communication is over HTTP, which is obviously slower than raw tcp.</p></pre>AYBABTME: <pre><p>You could write a layer on top that maps to your typed values. If you want CAS/Increment/Decrement and things like that, it looks to me like you want a database more than a cache.</p>
<p>I'm not familiar with Hazelcast so maybe I'm missing something.</p></pre>3264128256: <pre><p>Such a library does not exist, I know because I've looked for it (Cache that is distributed, embeddable and supports cache eviction) Most libraries you'll find will be of the form <code>map[string]interface{}</code>. Groupcache is the closest we have. </p>
<p>I'm sure there will be a lot of interest for such a library/server. I'll be happy to contribute.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传