Download presentation
Presentation is loading. Please wait.
1
Redis and Redis with .NET
How to operate with Redis Databases Databases Telerik Software Academy
2
Ultra-Fast Data Structures Server
Redis Ultra-Fast Data Structures Server
3
What is Redis? Redis is Redis stores data structures:
Ultra-fast in-memory key-value data store Powerful data structures server Open-source software: Redis stores data structures: Strings Lists Hash tables Sets / sorted sets
4
Installing Redis To install Redis on Linux/Mac OSX:
Download from Run it To install Redis on Windows: Download Open the solution in the msvs folder and build it with VS Or use Package manager s Chocolatey
5
Installing and Building a Redis Server
Live Demo
6
Working with Redis and the .NET API
7
Working with Redis and .NET
Install the Redis Client of ServiceStack.Net Free and intuitive to use Run in VS console Then: Install-Package ServiceStack.Redis var redis = new RedisClient(host); var redisLogs = redis.As<Log>(); redisLogs.Store(newTodo); redisLogs.GetAll() .Print();
8
Using Redis with .NET Live Demo
9
Redis Clients
10
Redis Clients The ServiceStack Redis API provides three different clients to work with the data: IRedisNativeClient IRedisClient IRedisTypedClient IRedisNativeClient client = new RedisClient() IRedisClient client = new RedisClient() RedisClient client = new RedisClient()
11
Redis Clients Live Demo
12
Database Persistence
13
Redis Persistence Redis runs in the memory
That is the reason to be that fast Redis saves the data on the disk at a given period By default: save // 1 key for 900 seconds save //10 keys for 300 seconds save // keys for 60 seconds
14
Database Persistence Live Demo
15
Redis and Redis with .NET
16
Homework No homework
17
Free Trainings @ Telerik Academy
Telerik School Academy schoolacademy.telerik.com Telerik Software Academy academy.telerik.com Telerik Facebook facebook.com/TelerikAcademy Telerik Software Academy Forums forums.academy.telerik.com
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.