CacheAuthenticatorDAO has disappeared from 4.0.0?


#1

It seems intellij cannot resolve import com.mohiva.play.silhouette.impl.daos.CacheAuthenticatorDAO. What is the alternative now?

Thanks!


#2

Hi,

we do not provide DAO implementations anymore in the core. You should create your own implementation instead. If you need to store the authenticator in cache, then you can copy the code from here: https://github.com/mohiva/play-silhouette/blob/eab46b75286ef2882c9aa8b7b6e5d38ec5b7c118/app/com/mohiva/play/silhouette/contrib/daos/CacheAuthenticatorDAO.scala

Otherwise you should store the authenticator in a database.

Best regards,
Christian


#3

The CacheAuthenticatorRepository can be used with the cache layer.