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

Microsoft.Extensions.Caching.StackExchangeRedis SetString BUG #121

Closed
dashiell-zhang opened this issue Mar 25, 2024 · 8 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@dashiell-zhang
Copy link

My project uses Microsoft.Extensions.Caching.StackExchangeRedis as the implementation of distributed cache. When connected to Garnet, the Set action will return an ERR unknown command exception.

IDistributedCache distributedCache

distributedCache.SetString(key, value, new DistributedCacheEntryOptions { AbsoluteExpirationRelativeToNow = absoluteExpirationRelativeToNow });

ERR unknown command

@yzy613
Copy link

yzy613 commented Mar 25, 2024

Currently, garnet does not fully support all redis commands.

@douglasg14b
Copy link

What commands are unsupported for this scenario?

@davidglassborow
Copy link

See #85

@yzy613
Copy link

yzy613 commented Mar 25, 2024

What commands are unsupported for this scenario?

You can see api-compatibility.

@badrishc
Copy link
Contributor

Can you provide a simple repro - it should be possible to detect what variant of SET is being sent and add that relatively easily.

@badrishc
Copy link
Contributor

Or, just run the Garnet server in Debug mode with these three lines uncommented and with --logger-level Trace, then it will tell you what was received and unable to handle:

https://github.com/microsoft/garnet/blob/main/libs/server/Resp/RespServerSession.cs#L241

@davidglassborow
Copy link

All the details are on #85

@darrenge darrenge added the bug Something isn't working label Mar 26, 2024
@badrishc
Copy link
Contributor

badrishc commented Apr 1, 2024

Closing as the error will resolve once the above PR eliminating Lua merges.

@badrishc badrishc closed this as completed Apr 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants