Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于将list、set、hash、zset 接口支持interface的问题 #69

Closed
ZouR-Ma opened this issue Nov 4, 2021 · 1 comment
Closed

Comments

@ZouR-Ma
Copy link
Contributor

ZouR-Ma commented Nov 4, 2021

如果希望list、set、hash、zset 接口支持interface, 那么是否需要在编码函数即EncodeValue函数中,支持多类型的编码,同时在list、set、hash、zset 的结构体内将支持String的结构 修改为 interface{} 结构 ?

@roseduan
Copy link
Collaborator

roseduan commented Nov 4, 2021

目前使用的是 msgpack,传参进来统一装换成 []byte。
Get Value 的时候,需要传对应的值进行转换,可以参考 String 接口

@roseduan roseduan closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants