91 for key
in _redis_client.scan_iter(match=
'*{}*'.
format(query)):
92 key_type = _redis_client.type(key)
95 if key_type ==
'hash':
96 res = _redis_client.hgetall(key)
97 elif key_type ==
'list':
98 res = dict(enumerate(_redis_client.lrange(key, 0, -1)))
101 res[
'template'] = result_template
102 res[
'redis_key'] = key