search - redis如何快速查找某个值
PHP中文网
PHP中文网 2017-04-21 11:17:41
0
2
990

有时候调试的时候需要查找redis里的某个key里的值,该如何操作?

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
Ty80

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. 姓名/拼音首字母搜索

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template