MCPcopy
hub / github.com/olric-data/olric / Get

Method Get

client.go:166–166  ·  view source on GitHub ↗

Get gets the value for the given key. It returns ErrKeyNotFound if the DB does not contain the key. It's thread-safe. It is safe to modify the contents of the returned value. See GetResponse for the details.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

164 // does not contain the key. It's thread-safe. It is safe to modify the contents
165 // of the returned value. See GetResponse for the details.
166 Get(ctx context.Context, key string) (*GetResponse, error)
167
168 // Delete deletes values for the given keys. Delete will not return error
169 // if key doesn't exist. It's thread-safe. It is safe to modify the contents

Callers 15

TestClusterClient_GetFunction · 0.95
TestClusterClient_DeleteFunction · 0.95
TestClusterClient_ExpireFunction · 0.95
TestClusterClient_Put_ExFunction · 0.95
TestClusterClient_Put_PXFunction · 0.95
TestClusterClient_Put_NXFunction · 0.95
TestDMapPipeline_PutFunction · 0.95
TestDMapPipeline_ExpireFunction · 0.95
TestDMapPipeline_DiscardFunction · 0.95

Implementers 2

ClusterDMapcluster_client.go
EmbeddedDMapembedded_client.go

Calls

no outgoing calls

Tested by 15

TestClusterClient_GetFunction · 0.76
TestClusterClient_DeleteFunction · 0.76
TestClusterClient_ExpireFunction · 0.76
TestClusterClient_Put_ExFunction · 0.76
TestClusterClient_Put_PXFunction · 0.76
TestClusterClient_Put_NXFunction · 0.76
TestDMapPipeline_PutFunction · 0.76
TestDMapPipeline_ExpireFunction · 0.76
TestDMapPipeline_DiscardFunction · 0.76