MCPcopy Index your code
hub / github.com/dropbox/godropbox / removeDuplicateKey

Method removeDuplicateKey

memcache/raw_binary_client.go:346–358  ·  view source on GitHub ↗
(keys []string)

Source from the content-addressed store, hash-verified

344}
345
346func (c *RawBinaryClient) removeDuplicateKey(keys []string) []string {
347 keyMap := make(map[string]interface{})
348 for _, key := range keys {
349 keyMap[key] = nil
350 }
351 cacheKeys := make([]string, len(keyMap))
352 i := 0
353 for key, _ := range keyMap {
354 cacheKeys[i] = key
355 i = i + 1
356 }
357 return cacheKeys
358}
359
360// See Client interface for documentation.
361func (c *RawBinaryClient) GetMulti(keys []string) map[string]GetResponse {

Callers 1

GetMultiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected