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

Working with arrays #64

Open
phillip055 opened this issue Jun 2, 2021 · 0 comments
Open

Working with arrays #64

phillip055 opened this issue Jun 2, 2021 · 0 comments

Comments

@phillip055
Copy link

`type Object struct {
ID int
Name string
}
var objs []Object = [{}] //real value

err = repo.cache.Set(&cache.Item{
Key: cacheKey,
Ctx: ctx,
Value: &objs,
TTL: cacheExpirationDuration,
})
err := repo.cache.Get(ctx, cacheKey, &objs)
`

err got me msgpack: unexpected code=c5 decoding map length

Not sure I am missing anything?

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

1 participant