package main
import (
"fmt"
"log"
"github.com/qclaogui/kvdb"
)
func main() {
m := kvdb.NewMem()
m.Put("/app/redis/username", "qclaogui")
m.Put("/app/redis/password", "123456789")
m.Put("/app/port", "80")
v, err := m.Get("/app/redis/username")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Get \t\tValue: %s\n\n", v)
if ks, err := m.GetMany("/app/*/*"); err == nil {
for _, v := range ks {
fmt.Printf("GetMany \tValue: %s\n", v)
}
}
}
// Output:
// Get Value: qclaogui
// GetMany Value: 123456789
// GetMany Value: qclaogui
-
Notifications
You must be signed in to change notification settings - Fork 0
mem key value DB
License
qclaogui/kvdb
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
mem key value DB
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published