MCPcopy Create free account
hub / github.com/kataras/iris / GetByID

Method GetByID

_examples/database/mysql/cache/groupcache.go:113–115  ·  view source on GitHub ↗

GetByID binds an item to "dest" an item based on its "id".

(ctx context.Context, id string, dest *[]byte)

Source from the content-addressed store, hash-verified

111
112// GetByID binds an item to "dest" an item based on its "id".
113func (c *Cache) GetByID(ctx context.Context, id string, dest *[]byte) error {
114 return c.group.Get(ctx, prefixID+id, groupcache.AllocatingByteSliceSink(dest))
115}
116
117// List binds item to "dest" based on the "rawQuery" of `url.Values` for `ListOptions`.
118func (c *Cache) List(ctx context.Context, rawQuery string, dest *[]byte) error {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected