Rails sessions with redis and no database -
Hello I am currently working in this application which uses some APIs to retrieve and send all APIs, API manages databases. And there is no database on my side (rail app).
I was asked to use the redis to store the session, so I'm working with redis and do not use any databases, my model ARERCORD nor ARESource . Keeping this in mind, I am working in the logout method but I have no database, so I am not sure what to do to handle it, because the session is stored in the red and I do not know the key of the session and I do not even know how to link that session with the user, I have no idea how to delete this session.
I'm open to suggestions, but it should be a sort of solution, there is no certification for railways working with railways?
Take a look at Red, Synatra Ruby: Lala Store is a complete repository for all modern Ruby Frameworks. Set ( cache , I18n, session, HTTP cache). , Rack, rack :: Cache and I18n This supports basically object mashling, timeout, single or multiple nodes and namespaces.
Comments
Post a Comment