MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / NewHashStructure

Function NewHashStructure

structure/hash.go:34–40  ·  view source on GitHub ↗

NewHashStructure Returns a new NewHashStructure

(options config.Options)

Source from the content-addressed store, hash-verified

32
33// NewHashStructure Returns a new NewHashStructure
34func NewHashStructure(options config.Options) (*HashStructure, error) {
35 db, err := engine.NewDB(options)
36 if err != nil {
37 return nil, err
38 }
39 return &HashStructure{db: db}, nil
40}
41
42// HSet sets the string value of a hash field in the HashStructure.
43// It takes the key, field, and value as input and stores the value in the specified hash field.

Callers 2

NewHashServiceFunction · 0.92
initHashDBFunction · 0.85

Calls 1

NewDBFunction · 0.92

Tested by 1

initHashDBFunction · 0.68