GetMulti is a batch version of Get. The returned map from keys to items may have fewer elements than the input slice, due to memcache cache misses. Each key must be at most 250 bytes in length.
(c context.Context, key []string)
| 152 | // have fewer elements than the input slice, due to memcache cache misses. |
| 153 | // Each key must be at most 250 bytes in length. |
| 154 | func GetMulti(c context.Context, key []string) (map[string]*Item, error) { |
| 155 | cas, peek := true, false |
| 156 | return getMulti(c, key, cas, peek) |
| 157 | } |
| 158 | |
| 159 | // Peek gets the item for the given key and additionally populates Item.Timestamps. |
| 160 | // ErrCacheMiss is returned for a memcache cache miss. The key must be at most 250 |
searching dependent graphs…