lazy_save

package
v0.0.0-...-457ba4f Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* User: cr-mao Date: 2023/8/3 09:01 Email: crmao@qq.com Desc: discard.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discard

func Discard(lso LazySaveObj)

取消

func SaveOrUpdate

func SaveOrUpdate(lazySaveObj LazySaveObj)

SaveOrUpdate 保存或更新

Types

type LazySaveObj

type LazySaveObj interface {
	//
	// GetLsoId 获取 延迟保存对象 Id
	GetLsoId() string

	//
	// SaveOrUpdate 保存或更新
	SaveOrUpdate(callback func())
}

LazySaveObj 延迟保存对象

Jump to

Keyboard shortcuts

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