Skip to content

使用interface自定义好友列表、群列表、群成员列表存储 #249

Description

@lz1998

经过测试,1600好友+400群,占用内存85MB,可以考虑把 好友列表、群列表、群成员列表 放在磁盘

提供 interface 参数,允许自定义存储方式,使用磁盘、Redis等方式,保存 好友列表、群列表、群成员列表

type Storage interface {
	Get(key []byte) ([]byte, error)
	Put(key, value []byte) error
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions