We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
仅限中文
当前ecache.Cache接口中只有Set/Get接口, 在 #23 中提到需要设置永不过期的key,然后根据业务场景在需要的时候删除key,故需要添加Delete接口
如果你知道有框架提供了类似功能,可以在这里描述,并且给出文档或者例子
方案一:
// Delete 删除一个或多个key, 当key不存在的时候,记入返回个数但不返回错误 func Delete(ctx context.Context, key ...string) (int64, error)
方案二:
// Delete 删除key,当key不存在的时候,不返回错误 func Delete(ctx context.Context, key string) error
如果你有设计思路或者解决方案,请在这里提供。你可以提供多个方案,并且给出自己的选择
任何你觉得有利于解决问题的补充说明
上传 go env 的结果
go env
The text was updated successfully, but these errors were encountered:
使用方案一
Sorry, something went wrong.
这样我就不需要再设计批量接口了
使用方案一 好的
PR已提交 #25
No branches or pull requests
仅限中文
使用场景
当前ecache.Cache接口中只有Set/Get接口, 在 #23 中提到需要设置永不过期的key,然后根据业务场景在需要的时候删除key,故需要添加Delete接口
行业分析
方案一:
方案二:
可行方案
其它
你使用的是 ecache 哪个版本?
你设置的的 Go 环境?
The text was updated successfully, but these errors were encountered: