我使用 redis 来存储某些实体的标签。数据示例:
+-------------+--------------------------------+
| key | value |
+-------------+--------------------------------+
| book:1:tags | [python, ruby, rails] |
+-------------+--------------------------------+
| book:2:tags | [fiction, fantasy] |
+-------------+--------------------------------+
| book:3:tags | [fiction, adventure] |
+-------------+--------------------------------+
如何找到带有特定标签的所有书籍,即所有带有 标记的书籍fiction
?