Documentation ¶
Index ¶
Constants ¶
View Source
const (
TableName = "sys_cache"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheVal ¶
type MysqlCache ¶
type MysqlCache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(db *gorm.DB) *MysqlCache
func (*MysqlCache) Delete ¶
func (mc *MysqlCache) Delete(key string) error
func (*MysqlCache) Get ¶
func (mc *MysqlCache) Get(key string, val interface{}) error
func (*MysqlCache) IsExist ¶
func (mc *MysqlCache) IsExist(key string) bool
Click to show internal directories.
Click to hide internal directories.