My redis has three libraries. I just want to store #3 library persistently. The other two libraries are only cached in memory. Is that possible?
No, and multiple databases are not recommended now. It is better to have one instance of redis per library, which can also meet your persistence requirements.