PHP中文网2017-04-21 11:19:41
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.
巴扎黑2017-04-21 11:19:41
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. 姓名/拼音首字母搜索