Documentation ¶
Index ¶
- Variables
- type Conf
- type ConfigInterface
- type DB
- func (d *DB) AfterWrite(isDel bool) func(*gorm.DB)
- func (d *DB) Before() func(*gorm.DB)
- func (d *DB) Get(ctx context.Context, tableName string, id interface{}, dest interface{}) error
- func (d *DB) Initialize(db *gorm.DB) error
- func (d *DB) IsEnable(db *gorm.DB) bool
- func (d *DB) Name() string
- func (d *DB) Query() func(*gorm.DB)
- type DisableInterface
- type EnableInterface
- type Group
- type StoreInterface
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConfigInterface ¶
type ConfigInterface interface {
GetCacheConf() Conf
}
type DB ¶
type DB struct { Conf Conf Store StoreInterface // contains filtered or unexported fields }
func NewDBCache ¶
func NewDBCache(client StoreInterface, conf Conf) *DB
type DisableInterface ¶
type DisableInterface interface {
IsCacheDisable() bool
}
type EnableInterface ¶
type EnableInterface interface {
IsCacheEnable() bool
}
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
Click to show internal directories.
Click to hide internal directories.