Redis is a light query NoSQL. Apart from query based on key names, there are almost no other query methods. It is not suitable for databases that use Redis for heavy queries. If you need rich queries, it is recommended to use MongoDb. In comparison, Redis is more suitable for high speed. Read-write, caching system without too many logical dependencies.
In addition, for your needs, you can put the data involved in sorting into the same hash, read out all the data when using it, and then sort it in the program. But this is just a compromise.
Use redis’s built-in sortset type to store data. It supports sorce subscript, which is equivalent to an index. It has powerful query, sorting, and range query capabilities. For details, you can see redis’ documentation on the sortset type
Redis only supports one kind of fuzzy query, which is keys. Query based on keywords. Any other data structure is not supported, so your needs cannot be achieved simply through Redis. You can consider other NoSql products, or implement it through indexing.
Redis is a light query NoSQL. Apart from query based on key names, there are almost no other query methods. It is not suitable for databases that use Redis for heavy queries. If you need rich queries, it is recommended to use MongoDb. In comparison, Redis is more suitable for high speed. Read-write, caching system without too many logical dependencies.
In addition, for your needs, you can put the data involved in sorting into the same hash, read out all the data when using it, and then sort it in the program. But this is just a compromise.
Use redis’s built-in sortset type to store data. It supports sorce subscript, which is equivalent to an index. It has powerful query, sorting, and range query capabilities. For details, you can see redis’ documentation on the sortset type
Redis only supports one kind of fuzzy query, which is keys. Query based on keywords. Any other data structure is not supported, so your needs cannot be achieved simply through Redis. You can consider other NoSql products, or implement it through indexing.