MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / deleteCache

Method deleteCache

internal/dao/userExample.go:52–57  ·  view source on GitHub ↗
(ctx context.Context, id uint64)

Source from the content-addressed store, hash-verified

50}
51
52func (d *userExampleDao) deleteCache(ctx context.Context, id uint64) error {
53 if d.cache != nil {
54 return d.cache.Del(ctx, id)
55 }
56 return nil
57}
58
59// Create a new userExample, insert the record and the id value is written back to the table
60func (d *userExampleDao) Create(ctx context.Context, table *model.UserExample) error {

Callers 4

DeleteByIDMethod · 0.95
UpdateByIDMethod · 0.95
DeleteByTxMethod · 0.95
UpdateByTxMethod · 0.95

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected