title: Do we have the database access layer to easily switch to other databases in Scala
body: <p><strong>Requirement:</strong></p>
  
  <p>I am developing an IoT related application using Scala. In this application, I have to implement the list of APIs for multiple modules. For Example, I 'll take the User module. In the world, most of the applications have the User module. So I am planning to implement a User module and reuse it in other applications.</p>
  
  <p>In the current project, I am going to use Redis database. In future, I may use any SQL/NoSQL databases. So how do I write a single code that can be supported for the other database? </p>
  
  <p>Is this possible to do this in Scala? Kindly provide your suggestions. Thanks.</p>