MCPcopy Create free account
hub / github.com/distributedio/titan / Get

Method Get

db/string.go:59–64  ·  view source on GitHub ↗

Get the value information for the key from db

()

Source from the content-addressed store, hash-verified

57
58// Get the value information for the key from db
59func (s *String) Get() ([]byte, error) {
60 if !s.Exist() {
61 return nil, ErrKeyNotFound
62 }
63 return s.Meta.Value, nil
64}
65
66// Set set the string value of a key
67// the num of expire slice is not zero and expire[0] is not zero ,the key add exprie queue

Callers 15

GetFunction · 0.80
MGetFunction · 0.80
getHashMetaFunction · 0.80
GetSetFunction · 0.80
SIsmemberMethod · 0.80
SRemMethod · 0.80
GetHashFunction · 0.80
HSetMethod · 0.80
HSetNXMethod · 0.80
HGetMethod · 0.80
HExistsMethod · 0.80
HIncrByMethod · 0.80

Calls 1

ExistMethod · 0.95

Tested by 8

getHashMetaFunction · 0.64
getValueFunction · 0.64
TestStringGetFunction · 0.64
TestStringSetFunction · 0.64
TestStringGetSetFunction · 0.64
TestGCFunction · 0.64
Test_runExpireFunction · 0.64
Test_doExpireFunction · 0.64