SpringBoot Example of SimplCache In this example, MongoDB is used as both persistent and cache database. A CacheModel and PersistentDB model have been created to store Car model seperately in cache and persistentdb.