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
BigCache: func (c *BigCache) Get(key string) ([]byte, error) { // ... } func (c *BigCache) Set(key string, entry []byte) error { // ... }
But cache in dataloader: func (c *NoCache) Get(context.Context, Key) (Thunk, bool) { return nil, false } func (c *NoCache) Set(context.Context, Key, Thunk) { return }
So how do i implement BigCache in dataloader? How convert Thunk to []byte and []byte to Thunk? Looking forward to your reply!
The text was updated successfully, but these errors were encountered:
See PR #84. It adds support for Generics and once merged you'll be able to use any type as the value - in your case Thunk[[]byte]
Thunk[[]byte]
Sorry, something went wrong.
No branches or pull requests
BigCache:
func (c *BigCache) Get(key string) ([]byte, error) {
// ...
}
func (c *BigCache) Set(key string, entry []byte) error {
// ...
}
But cache in dataloader:
func (c *NoCache) Get(context.Context, Key) (Thunk, bool) { return nil, false }
func (c *NoCache) Set(context.Context, Key, Thunk) { return }
So how do i implement BigCache in dataloader? How convert Thunk to []byte and []byte to Thunk?
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: