MCPcopy Create free account
hub / github.com/allegro/bigcache / Get

Method Get

queue/bytes_queue.go:192–195  ·  view source on GitHub ↗

Get reads entry from index

(index int)

Source from the content-addressed store, hash-verified

190
191// Get reads entry from index
192func (q *BytesQueue) Get(index int) ([]byte, error) {
193 data, _, err := q.peek(index)
194 return data, err
195}
196
197// CheckGet checks if an entry can be read from index
198func (q *BytesQueue) CheckGet(index int) error {

Callers 5

TestGetEntryFromIndexFunction · 0.95
getFunction · 0.45

Calls 1

peekMethod · 0.95

Tested by 5

TestGetEntryFromIndexFunction · 0.76
getFunction · 0.36