This commit is contained in:
John Guo
2024-02-05 10:29:43 +08:00
committed by GitHub
parent cc79d23334
commit 14568562e3
3 changed files with 94 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (c *Core) ClearTableFields(ctx context.Context, table string, schema ...str
func (c *Core) ClearTableFieldsAll(ctx context.Context) (err error) {
var (
keys = tableFieldsMap.Keys()
cachePrefix = fmt.Sprintf(`%s@%s`, cachePrefixTableFields, c.db.GetGroup())
cachePrefix = fmt.Sprintf(`%s%s`, cachePrefixTableFields, c.db.GetGroup())
removedKeys = make([]string, 0)
)
for _, key := range keys {

View File

@ -68,6 +68,7 @@ func (d *DriverWrapperDB) TableFields(
)
}
var (
// prefix:group@schema#table
cacheKey = fmt.Sprintf(
`%s%s@%s#%s`,
cachePrefixTableFields,