Skip to content

denisdnc/redis-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-watch

Implements an example of transaction on Redis, using WATCH, MULTI and EXEC. POC to validate concurrency scenery in a Inventory managment(stock).

Using Redis Template Transactions.

How test

During the sleep time, which is 30 seconds, update the redis key in the console like example:

hset sku:123 qty 25

In the first time the attempt should not update the value, look at the application log for attempts.

Docker compose informations

##Redis port: 6379 password: segredo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published