MCPcopy Create free account
hub / github.com/AdRoll/baker / Set

Method Set

record.go:89–95  ·  view source on GitHub ↗

Set assigns the given value to a specific key.

(key string, val interface{})

Source from the content-addressed store, hash-verified

87
88// Set assigns the given value to a specific key.
89func (c *Cache) Set(key string, val interface{}) {
90 if *c == nil {
91 *c = Cache{}
92 }
93
94 (*c)[key] = val
95}
96
97// Del removes the given cache entry.
98func (c *Cache) Del(key string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected