Functionin simplecompute-sdk-go v1.11.0View source
func Get(key []byte) (io.ReadCloser, error)

Get retrieves the object stored in the cache for the given key. If the key is not cached, [core.ErrNotFound] is returned. Keys can be up to 4096 bytes in length.

The returned io.ReadCloser must be closed by the caller when finished.

Parameters

key: []byte

Returns

(io.ReadCloser, error)