private MessagePayloadKeyValueRepository newMessagePayloadKeyValueRepository()

in src/main/java/com/epam/digital/data/platform/storage/message/factory/MessagePayloadStorageServiceFactory.java [98:107]


  private MessagePayloadKeyValueRepository newMessagePayloadKeyValueRepository(
      RedisTemplate<String, Object> template) {
    RedisKeyValueAdapter keyValueAdapter = new RedisKeyValueAdapter(
        template.opsForHash().getOperations());
    RedisKeyValueTemplate keyValueTemplate = new RedisKeyValueTemplate(keyValueAdapter,
        new RedisMappingContext());

    RepositoryFactorySupport factory = new RedisRepositoryFactory(keyValueTemplate);
    return factory.getRepository(MessagePayloadKeyValueRepository.class);
  }