redis_dao

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

TODO(@benqi): 可以使用如下方法来生成seq - 如果运维能保证redis数据可靠性,可移除数据库seq_updates_ngen的存储 - 可使用[seqsvr](https://github.com/nebula-in/seqsvr)服务来生成seq - 可调研艺龙的序列号生成器 - 直接使用etcd或zk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SequenceDAO

type SequenceDAO struct {
	// contains filtered or unexported fields
}

func NewSequenceDAO

func NewSequenceDAO(redis *redis_client.RedisPool) *SequenceDAO

func (*SequenceDAO) CurrentChannelMessageBoxId

func (dao *SequenceDAO) CurrentChannelMessageBoxId(key string) (seq int64, err error)

func (*SequenceDAO) CurrentChannelPtsId

func (dao *SequenceDAO) CurrentChannelPtsId(key string) (seq int64, err error)

func (*SequenceDAO) CurrentMessageBoxId

func (dao *SequenceDAO) CurrentMessageBoxId(key string) (seq int64, err error)

func (*SequenceDAO) CurrentPtsId

func (dao *SequenceDAO) CurrentPtsId(key string) (seq int64, err error)

func (*SequenceDAO) CurrentQtsId

func (dao *SequenceDAO) CurrentQtsId(key string) (seq int64, err error)

func (*SequenceDAO) CurrentSeqId

func (dao *SequenceDAO) CurrentSeqId(key string) (seq int64, err error)

func (*SequenceDAO) FetchNextSequence

func (dao *SequenceDAO) FetchNextSequence(key string) (seq int64, err error)

func (*SequenceDAO) GetCurrentSequence

func (dao *SequenceDAO) GetCurrentSequence(key string) (seq int64, err error)

func (*SequenceDAO) NextChannelMessageBoxId

func (dao *SequenceDAO) NextChannelMessageBoxId(key string) (seq int64, err error)

func (*SequenceDAO) NextChannelPtsId

func (dao *SequenceDAO) NextChannelPtsId(key string) (seq int64, err error)

func (*SequenceDAO) NextMessageBoxId

func (dao *SequenceDAO) NextMessageBoxId(key string) (seq int64, err error)

func (*SequenceDAO) NextPtsId

func (dao *SequenceDAO) NextPtsId(key string) (seq int64, err error)

func (*SequenceDAO) NextQtsId

func (dao *SequenceDAO) NextQtsId(key string) (seq int64, err error)

func (*SequenceDAO) NextSeqId

func (dao *SequenceDAO) NextSeqId(key string) (seq int64, err error)

Jump to

Keyboard shortcuts

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