Documentation ¶
Index ¶
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterCreate ¶
func AfterDelete ¶
func AfterQuery ¶
func AfterUpdate ¶
func BeforeQuery ¶
Types ¶
type TangCache ¶
type TangCache struct { Config *config.CacheConfig InstanceId string // contains filtered or unexported fields }
func NewTangCache ¶
func NewTangCache(cacheConfig *config.CacheConfig) (*TangCache, error)
func (*TangCache) GetSearchCache ¶
func (*TangCache) InvalidateSearchCache ¶
Click to show internal directories.
Click to hide internal directories.