Closed hubert-associates closed 7 months ago
@hubert-associates Thanks for your interest in this project.
Thank you for the quick answer. I was unaware of the .Database to provide the instance reference. I looked at the src/ tests
For GetByPrefixAsync. Isn't the prefix just a REDIS pattern? It uses this I believe? But they say there "Don't use KEYS in your regular application code. If you're looking for a way to find keys in a subset of your keyspace, consider using SCAN or sets."
To use .Database. Nice. it looks like a cast does the trick here
For GetByPrefixAsync. Isn't the prefix just a REDIS pattern? It uses this I believe? But they say there "Don't use KEYS in your regular application code. If you're looking for a way to find keys in a subset of your keyspace, consider using SCAN or sets."
The prefix use Redis pattern. It will use scan at first if the redis server supports this command, otherwise, it will use keys.
To use .Database. Nice. it looks like a cast does the trick here
YES
Perfect! Great solution. Thank you.
Hi, I didn't find this in the doc. I'm using EasyCache C# default RedisProvider with the protobuf "proto" serializer. Works fine. Now, I'd like to query my (EasyCaching) redis using a wildcard in the key and get the resulting list/array of hits back. How can I do this using EasyCaching "best practice"? Thanks for a tip!