Documentation
¶
Index ¶
- Variables
- type RedCache
- func (rc *RedCache) BatchCreate(i []interface{}) (err error)
- func (rc *RedCache) Count() (count int, err error)
- func (rc *RedCache) Create() (err error)
- func (rc *RedCache) Delete() (err error)
- func (rc *RedCache) GetSyncStatus() (status map[string]bool, err error)
- func (rc *RedCache) Limit(limit interface{}) *RedCache
- func (rc *RedCache) Model(model interface{}) *RedCache
- func (rc *RedCache) Offset(offset interface{}) *RedCache
- func (rc *RedCache) OrderBy(orderBy interface{}) *RedCache
- func (rc *RedCache) Select() (reply []interface{}, err error)
- func (rc *RedCache) SetSyncStatus(status map[string]bool) (reply interface{}, err error)
- func (rc *RedCache) Where(where map[string]interface{}) *RedCache
- type StructField
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //存储缓存数据加载情况,数据库和缓存数据量一致为真 SyncCache = make(map[string]bool) //是否使用缓存 UseRedcache = true )
Functions ¶
This section is empty.
Types ¶
type RedCache ¶
type RedCache struct {
// contains filtered or unexported fields
}
func (*RedCache) BatchCreate ¶
func (*RedCache) GetSyncStatus ¶
func (*RedCache) SetSyncStatus ¶
设置同步状态
Click to show internal directories.
Click to hide internal directories.