0

Is there any way to call bgSave() (force writing to disk) using Spring Data Redis Repositories?

public interface UserRepository extends CrudRepository<User, String> {
}

I've gone through the docs but I couldn't find any reference about bgSave(). The only way I can think of would be by autowiring RedisConnectionFactory, getting the RedisConnection and calling the method, although I'm not sure it would work.

Amin Abu-Taleb
  • 4,423
  • 6
  • 33
  • 50

0 Answers0