Store user attempts in persistence storage

Hello Team,

Is there any way we can store the user failed login attempts in persistence storage and the same i can refer in the Authenticator implemented for username login password form ? I do not want to use cache as its in-memory hence i would like to go over persistence.

Any references on what is the use of USERNAME_LOGIN_FAILURE table and how that can be used to track failure attempts ?