GetByID binds an item to "dest" an item based on its "id".
(ctx context.Context, id string, dest *[]byte)
| 111 | |
| 112 | // GetByID binds an item to "dest" an item based on its "id". |
| 113 | func (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`. |
| 118 | func (c *Cache) List(ctx context.Context, rawQuery string, dest *[]byte) error { |