Finish Insert() caching.
This commit is contained in:
parent
793306d749
commit
acad9f7de5
7 changed files with 65 additions and 39 deletions
templates/singleton
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue