You can use keys. For example, if you want to find the key containing user, use keys user. However, keys are usually not allowed to be used in production environments because keys need to be traversed.
Two methods, one is to represent the value with a key, and use keys to search when searching. The second method is to find the string by looping the array. Two methods of using redis for search optimization You can check out this blog, an example of php+redis. 姓名/拼音首字母搜索
You can use keys. For example, if you want to find the key containing user, use keys user. However, keys are usually not allowed to be used in production environments because keys need to be traversed.
Two methods, one is to represent the value with a key, and use keys to search when searching. The second method is to find the string by looping the array.
Two methods of using redis for search optimization
You can check out this blog, an example of php+redis.
姓名/拼音首字母搜索