0
I have an Item template. Can you store Item.all(Item::Activerecord_relation) in Redis? I tried to do so:
$redis = Redis::Namespace.new("suggestme", :redis => Redis.new)
$redis.set("itens", Item.all)
But when I give:
$redis.get("itens")
He returns to me "#<Item::ActiveRecord_Relation:0x007fe399d6e550>"
that is a String...
The idea was to save an Array of items.