I am new to redis , and I found that learning the basics of redis is very simple, but when I try to understand how I can use it with rails, it becomes a stream, and I cannot find any good teacher who explains the steps from scratch, for example , I find the code as follows:
class User < ActiveRecord::Base
but in this example, no other example shows how to use the follow method, what is an object , I need to go to this method (is this object from a relational database? or what), etc ...
all the examples that I find in my search are incomplete, and this rend redis is not easy when we decide to use it with rails!
I also found that using redis in a model that inherits from ActiveRecord, I cannot understand: if redis is used in most cases with a relational database or alone, and what is most often used, and how exactly?
I know that my question is extensive, but I am looking for how to use redis and rails together, also, if you have a good resource for me, I will greatly appreciate it. thanks
medBo source share