-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Is there any "GetAllKeysByPrefix" like method ? #1048
Comments
BlowaXD
changed the title
GetAllKeysByPrefix
How to have something like "GetAllKeysByPrefix" method ?
Jan 24, 2019
BlowaXD
changed the title
How to have something like "GetAllKeysByPrefix" method ?
Is there any "GetAllKeysByPrefix" like method ?
Jan 24, 2019
The Keys method accepts a glob pattern, so wildcards like "yourprefix*"
should work fine. The Keys method is on the server API, not the database
API, because it is a per-server operation:
https://stackexchange.github.io/StackExchange.Redis/KeysScan
Note however that it is a *terrible* idea to sue this API *routinely* in
production. It simply isn't something that redis is good at. Common
workarounds include things like sets of key names.
…On Thu, 24 Jan 2019, 20:32 Blowa ***@***.*** wrote:
Hello,
I would like to know if there is an actual way to have something like
"GetAllKeysByPrefix" ?
I'm using Foundatio framework and it looks like it's not possible (or I'm
probably wrong) to do that with their actual architecture, so I'm willing
to add it and request it for addition on their framework.
As they are using StackExchange.Redis client.
Here is the issue talking about it
<FoundatioFx/Foundatio#128>
Thanks by advance,
Blowa.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1048>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABDsIueed776PgLCZ6Y266_qizNpU-Xks5vGhhXgaJpZM4aRqMO>
.
|
Thanks for your answer, I already had the idea of sets with keynames, I think I will probably go for that solution which seems to be a good way to save both compute time and code writing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I would like to know if there is an actual way to have something like "GetAllKeysByPrefix" ?
I'm using Foundatio framework and it looks like it's not possible (or I'm probably wrong) to do that with their actual architecture, so I'm willing to add it and request it for addition on their framework.
As they are using StackExchange.Redis client.
Here is the issue talking about it
Thanks by advance,
Blowa.
The text was updated successfully, but these errors were encountered: