Top 0.8% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 5.4% forks on proxy.golang.org
Top 0.7% docker downloads on proxy.golang.org
proxy.golang.org : github.com/lunny/nodb
package nodb is a high performance embedded NoSQL. nodb supports various data structure like kv, list, hash and zset like redis. Other features include binlog replication, data with a limited time-to-live. First create a nodb instance before use: cfg is a Config instance which contains configuration for nodb use, like DataDir (root directory for nodb working to store data). After you create a nodb instance, you can select a DB to store you data: DB must be selected by a index, nodb supports only 16 databases, so the index range is [0-15]. KV is the most basic nodb type like any other key-value database. List is simply lists of values, sorted by insertion order. You can push or pop value on the list head (left) or tail (right). Hash is a map between fields and values. ZSet is a sorted collections of values. Every member of zset is associated with score, a int64 value which used to sort, from smallest to greatest score. Members are unique, but score may be same. nodb supports binlog, so you can sync binlog to another server for replication. If you want to open binlog support, set UseBinLog to true in config.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/lunny/nodb
License: MIT
Latest release: almost 9 years ago
First release: almost 9 years ago
Namespace: github.com/lunny
Dependent packages: 40
Dependent repositories: 332
Stars: 132 on GitHub
Forks: 16 on GitHub
Docker dependents: 10
Docker downloads: 189,311
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago