This guide explores Redis’s capabilities for executing atomic operations using transactions and pipelines in C#. Learn how to batch commands with pipelines, implement atomic transactions with watch/unwatch, and leverage Lua scripting for advanced use cases.
Overview
Syllabus
- Unit 1: Batching Commands with Pipelines in C# Using StackExchange.Redis
- Redis Transactions in C#
- Modify Redis Pipeline to Decrement a Key
- Debugging Transactional Issue in Redis with C#
- Batch Commands in a Redis Pipeline Task
- Redis Pipeline with C#
- Batch Processing with Pipelines in Redis
- Unit 2: Utilizing the Watch Command in Redis with C# and StackExchange.Redis
- Monitoring and Updating User Balance with Redis in C#
- Observing Data Consistency with Redis in C#
- Modify UpdateBalance to Handle User ID
- Updating Post Likes in Redis Using Transactions
- Updating User Points with Redis Transactions
- Unit 3: Utilizing the Unwatch Command in Redis with C# and StackExchange.Redis
- Simulating Concurrent Updates with Transactions in C#
- Implement Conditional Balance Update in Redis
- Enhancing Transaction Balance Updates
- Enhancing Transaction Control with Redis Unwatch Command
- Update Player Points Using Redis Transactions
- Unit 4: Overview of Redis Lua Scripting for Transactions in C#
- Lua Scripting in Redis with C#
- Decrement Value in C# Redis Application
- Updating Blog Post View Count in Redis Using Lua Scripts
- Decrease Available Copies of a Book When Borrowed
- Updating Player XP in Redis Using Lua Script
- Updating Player Scores in Redis with C#