2
使用redis存儲某些實體的標籤。數據的例子:Redis根據設定值找到密鑰
+-------------+--------------------------------+
| key | value |
+-------------+--------------------------------+
| book:1:tags | [python, ruby, rails] |
+-------------+--------------------------------+
| book:2:tags | [fiction, fantasy] |
+-------------+--------------------------------+
| book:3:tags | [fiction, adventure] |
+-------------+--------------------------------+
我如何找到所有書籍與特定的標籤,即標籤的所有書籍fiction
?
我發佈了類似的問題mongodb:http://stackoverflow.com/questions/11585655/book-tagging-with-mongodb-many-to-many-implementation,如果你可以幫忙 – zsquare 2012-07-20 19:18:57