Skip to content

Example project to demonstrate usage of redis in combination with spring transaction management

License

Notifications You must be signed in to change notification settings

lh39/spring-redis-transaction-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot - Redis Transactional Example

This repository contains code to demonstrate Spring Boot transaction behavior when working with a redis instance.
It also demonstrates how to create self-instantiated domain components with Spring autowiring within the application context.

Prerequisites

Locally running redis instance with default configuration

Run the application

mvn spring-boot:run

Redis

Configuration

  • see RedisConfiguration, with default redis configuration and an embedded database for enabling transaction management

Usage

Autowiring self-instantiated domain component

  • see TestComponentFactory, which is responsible for providing assisted autowiring, by offering a factory method to create autowired objects with custom parameters
  • see TestComponent, which is the instantiated object

About

Example project to demonstrate usage of redis in combination with spring transaction management

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published