Many-to-many relationships with Ruby, Redis, and Ohm
问题 I'm attempting to create a many-to-many relationship in Redis using Ohm. As an example, I have Book and Author models defined as follows: class Book < Ohm::Model attribute :title set :authors, Author end class Author < Ohm::Model attribute :last_name attribute :first_name set :books, Book end What I would like to be able to do is leverage Ohm's indexing capabilities to do finds such as: require 'test_helper' class ManyToManyRelationshipTest < ActiveSupport::TestCase setup do @dave_thomas =