MCPcopy
hub / github.com/cubefs/cubefs / PutCacheRequest

Struct PutCacheRequest

client/blockcache/bcache/packet.go:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48var Buffers *buf.BufferPool
49
50type PutCacheRequest struct {
51 CacheKey string `json:"key"`
52 Data []byte `json:"data"`
53 VolName string `json:"volName"`
54}
55
56func (req *PutCacheRequest) Marshal() (result []byte, err error) {
57 buff := bytespool.NewBuffer(4 + len(req.CacheKey) + 4 + len(req.Data) + 4 + len(req.VolName))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected