(schemeID string, sc *selectContext, list []*schema.Resource, total uint64, wasLocked bool, errList error)
| 136 | } |
| 137 | |
| 138 | func (tx *CachedTransaction) saveCache(schemeID string, sc *selectContext, list []*schema.Resource, total uint64, wasLocked bool, errList error) error { |
| 139 | if errList != nil { |
| 140 | return nil |
| 141 | } |
| 142 | key, err := tx.createKey(schemeID, sc) |
| 143 | if err != nil { |
| 144 | return err |
| 145 | } |
| 146 | tx.QueryCache[key] = CachedState{list, total, wasLocked} |
| 147 | return nil |
| 148 | } |
| 149 | |
| 150 | func (tx *CachedTransaction) ClearCache() { |
| 151 | tx.QueryCache = make(map[string]CachedState) |
no test coverage detected