Versions in this module Expand all Collapse all v1 v1.0.1 Jun 10, 2024 Changes in this version + func AfterCreate(cache *TangCache) func(db *gorm.DB) + func AfterDelete(cache *TangCache) func(db *gorm.DB) + func AfterQuery(cache *TangCache) func(db *gorm.DB) + func AfterUpdate(cache *TangCache) func(db *gorm.DB) + func BeforeQuery(cache *TangCache) func(db *gorm.DB) + type TangCache struct + Config *config.CacheConfig + InstanceId string + func NewTangCache(cacheConfig *config.CacheConfig) (*TangCache, error) + func (c *TangCache) GetSearchCache(ctx context.Context, tableName string, sql string, p reflect.Type, ...) (interface{}, error) + func (c *TangCache) Init() error + func (c *TangCache) Initialize(db *gorm.DB) (err error) + func (c *TangCache) InvalidateSearchCache(ctx context.Context, tableName string) error + func (c *TangCache) Name() string + func (c *TangCache) SetSearchCache(ctx context.Context, tableName string, value interface{}, sql string, ...) error