TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Camellia, a lightweight, persistent, hierarchical key-value store

2 点作者 debevv超过 3 年前

2 条评论

eps超过 3 年前
I found this post when searching HN for &quot;key-value store&quot; posts, because I&#x27;m working on my own and wanted to see what other people have done.<p>Fwiw, your take on this is basically a generic blob storage that is (1) keyed by strings with (2) some restrictions on their format and (3) some special semantics stemming from it.<p>In particular, #2 is the fact that multiple &#x2F; are collapsed into one.<p>#3 is that slashes are used for tokenizing keys when importing&#x2F;exporting json and for delete operations.<p>There also appears to be a restriction that a node can&#x27;t have <i>both</i> a value and children, which is consistent with the json model, but not with other hierarchical kv stores, e.g. Windows registry.<p>All in all, there is certainly a value in being able to export&#x2F;import data as json, but it appears that ALL syntax and semantic restrictions in the datamodel are due to that. So, technically, one can just use generic kv store, allow keys to be in whatever format, and then make SetValueFromJson() take a &quot;path separator&quot; as an argument <i>and</i> also allow it to fail (due to malformed keys or keys having values and children). Ditto for delete.<p>This is less of a critique&#x2F;feedback and more of &quot;analysis&quot;, for myself. Take it for what it is.
debevv超过 3 年前
Hi HN, this is a small Golang project I was developing for myself and then decided to open source. Let me know your comments, advices, complaints etc.