Finish Insert() caching.

This commit is contained in:
Aaron L 2016-09-03 12:47:27 -07:00
parent 793306d749
commit acad9f7de5
7 changed files with 65 additions and 39 deletions
templates/singleton

View file

@ -17,3 +17,19 @@ type updateCache struct{
query string
valueMapping []uint64
}
func makeCacheKey(wl, nzDefaults []string) string {
buf := strmangle.GetBuffer()
for _, w := range wl {
buf.WriteString(w)
}
for _, nz := range nzDefaults {
buf.WriteString(nz)
}
str := buf.String()
strmangle.PutBuffer(buf)
return str
}