redcache

package module
v0.0.0-...-c923cef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-redis-cache

redis模拟关系数据库

Documentation

Index

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 New

func New() (redCache *RedCache)

func (*RedCache) BatchCreate

func (rc *RedCache) BatchCreate(i []interface{}) (err error)

func (*RedCache) Count

func (rc *RedCache) Count() (count int, err error)

func (*RedCache) Create

func (rc *RedCache) Create() (err error)

func (*RedCache) Delete

func (rc *RedCache) Delete() (err error)

func (*RedCache) GetSyncStatus

func (rc *RedCache) GetSyncStatus() (status map[string]bool, err error)

func (*RedCache) Limit

func (rc *RedCache) Limit(limit interface{}) *RedCache

func (*RedCache) Model

func (rc *RedCache) Model(model interface{}) *RedCache

func (*RedCache) Offset

func (rc *RedCache) Offset(offset interface{}) *RedCache

func (*RedCache) OrderBy

func (rc *RedCache) OrderBy(orderBy interface{}) *RedCache

func (*RedCache) Select

func (rc *RedCache) Select() (reply []interface{}, err error)

Select

func (*RedCache) SetSyncStatus

func (rc *RedCache) SetSyncStatus(status map[string]bool) (reply interface{}, err error)

设置同步状态

func (*RedCache) Where

func (rc *RedCache) Where(where map[string]interface{}) *RedCache

type StructField

type StructField struct {
	TableName string
	Name      string
	Tags      map[string]map[string]string
	Index     map[string]string
	IndexKv   map[string]interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址