cache

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	AddConversationSessions(conversation string, sessions []string) error
	DelConversationSession(conversation string, session []string) error
	CleanConversation(conversation string) error
	CountConversationSessions(conversation string) (int64, error)
	IsExistsInConversation(conversation, session string) (bool, error)
	GetConversationSessions(conversation string) ([]string, error)
	KeyExistInCache(key string) (bool, error)
	SyncConversationLastMsgId(conversationId, msgId string) error
	GetConversationLastMsgId(conversationId string) (string, error)
	SetConversationInfo(conversationId string, info db.Conversation) error
	GetConversationInfo(conversationId string) (db.Conversation, error)
	UnSetConversationInfo(conversationId string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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