[英]How is Berkley gdbm typically used?
Gdbm is a simple key – value storage. Gdbm是一个简单的键-值存储。 I suspect that its use is based on various tricks.
我怀疑它的使用基于各种技巧。 For example, from end-user perspective, I would like to have a record named
user/project
, that should have associated the following: 例如,从最终用户的角度来看,我想要一条名为
user/project
的记录,该记录应与以下内容相关联:
I think this is enough. 我认为这足够了。 What I mean is that real world uses are sophisticated and Gdbm doesn't seem to defend itself.
我的意思是,现实世界中的使用非常复杂,Gdbm似乎并没有为自己辩护。 Is there a way to apply its use for above scenario?
有没有办法将其用于上述情况?
Will this work? 这样行吗? GDBM uses hashes, and if you use MLDBM you can store hashes of hashes as references.
GDBM使用哈希,如果使用MLDBM,则可以将哈希的哈希存储为引用。
%bobs_game_prj = { proto => git
domain => blah.com
ignore => \%ignore_files = { file1 => path, file2 => path}
etc.}
I do something like this with perl, but I imagine it works in any programming language. 我用perl做类似的事情,但是我想它可以在任何编程语言中工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.