Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Mastering Redis Transactions and Efficiency with C#

via CodeSignal

Overview

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.

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#

Reviews

Start your review of Mastering Redis Transactions and Efficiency with C#

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.