Click here to Skip to main content
14,983,121 members
Everything / Database Development / Redis

Redis

Redis

Great Reads

by Jonathan Cardy
Account of why and how I have written an open-source library for caching Redis data within a .NET client.
by KimJohnson
.NET Redis container and strongly typed data objects
by Najeeb Shaikh
Unlike SQL databases, Redis does not support querying by columns natively, which means that you have to maintain your own indexes. As it turns out, Redis provides a rich set of data types to the programmer to ease this task.
by Garbel Nervadof
Creating a very simple console chat app using C# (.NET Core) and Redis pub/sub feature, just with 55 lines of code

Latest Articles

by Yaseer Mumtaz
ASP.NET Core Microservices With Angular 11 Front End, API Gateway, Redis and SQL Server
by Redis Labs
Learn how to ingest tweets in real-time and query them flexibly using RediSearch with Azure Cache for Redis.
by Matthew Dennis
A Redis Client written from the ground up using System.IO.Pipelines, Span, etc
by DaShaun Carter
Azure Cache for Redis Enterprise has been in preview since October 2020 and has already been adopted by multiple organizations. App developers who want to take familiar Redis caching and data to the next level will also want to get their hands on this fully managed Azure native service.

All Articles

Sort by Score

Redis 

Please Sign up or sign in to vote.
3 Feb 2016
Jonathan Cardy
Account of why and how I have written an open-source library for caching Redis data within a .NET client.
Please Sign up or sign in to vote.
12 Jun 2020
KimJohnson
.NET Redis container and strongly typed data objects
Please Sign up or sign in to vote.
16 Jan 2016
Najeeb Shaikh
Unlike SQL databases, Redis does not support querying by columns natively, which means that you have to maintain your own indexes. As it turns out, Redis provides a rich set of data types to the programmer to ease this task.
Please Sign up or sign in to vote.
20 Dec 2017
Garbel Nervadof
Creating a very simple console chat app using C# (.NET Core) and Redis pub/sub feature, just with 55 lines of code
Please Sign up or sign in to vote.
29 Apr 2021
Matthew Dennis
A Redis Client written from the ground up using System.IO.Pipelines, Span, etc
Please Sign up or sign in to vote.
28 Mar 2018
Afzaal Ahmad Zeeshan
In this article, I will walk you through building an app with chat capability using Azure Redis Cache.
Please Sign up or sign in to vote.
13 Feb 2019
Philipp_Engelmann
With IoT (Internet of Things) on the rise and hardware getting cheaper and cheaper, it's a great time to explore the possibilities this new technology provides.
Please Sign up or sign in to vote.
3 Feb 2020
José Cintra
IoT architecture proposal for sensor data acquisition modules using the REDIS database and the GO language
Please Sign up or sign in to vote.
17 Dec 2014
wliao
Implementing an auto completion feature with Redis, NodeJS and jQuery
Please Sign up or sign in to vote.
5 Dec 2017
Renz Ladroma
This article will show you how to setup an automatic backup for Redis database.
Please Sign up or sign in to vote.
12 Mar 2020
Kevin Mack
What kinds of things should I avoid, or remove from my applications to improve my position moving forward
Please Sign up or sign in to vote.
18 Nov 2014
Mack Ait-Aoudia
Introduction to Redis for performance
Please Sign up or sign in to vote.
11 Apr 2015
Micha C
This is about creating a single page web site using an ASP.NET Web API Service which stores the data via Cache Manager.
Please Sign up or sign in to vote.
21 May 2015
Vladimir Dorokhov
Development cross platform Chrome Application for Azure developers.
Please Sign up or sign in to vote.
28 Aug 2015
Cybermaxs
Last time, I explored how to store time series in Microsoft Azure Table Service. This time I’ll do the same but in Redis. It’s is a very popular key-value store (but not only) and I highly encourage you to review it if you still don’t know it.
Please Sign up or sign in to vote.
23 Apr 2016
Prasoon Madnawat
This articles describes how to write a caching solution using Redis on .NET platform.
Please Sign up or sign in to vote.
16 May 2017
Kornfeld Eliyahu Peter
These parts of redist are not documented as far as I know... However here how you can parse it... First notice that the data is separated by classic C carriage-return+newline (\r\n)... So you should interpret it line by line... Lines beginning with * (asterisk) are counters... So the first line...
Please Sign up or sign in to vote.
4 Jan 2018
Philipp_Engelmann
In this short tutorial, I want to show you how to set up a simple Redis instance using Docker Compose. We will connect to it and test it using Python and the redis package.
Please Sign up or sign in to vote.
25 Jan 2018
Philipp_Engelmann
How to set up and deploy web applications using Flask and Redis on the Backend, and ReactJS on the Frontend. Using Docker Compose, it will be very easy to start, debug and deploy this application.
Please Sign up or sign in to vote.
27 Feb 2018
OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null - which...
Please Sign up or sign in to vote.
27 Feb 2018
F-ES Sitecore
Use the debugger and look at the "_newsarticleProvider" variable on the line that throws the error and you'll find it is null. At no point are you assigning a class to the variable, you're never creating an instance of ArticleProvider. Create a constructor for your controller and in that...
Please Sign up or sign in to vote.
12 Jul 2021
Redis Labs
Learn how to ingest tweets in real-time and query them flexibly using RediSearch with Azure Cache for Redis.
Please Sign up or sign in to vote.
30 Nov 2014
JasminHan
I'm find out the way to configure the RedisDB in a project that use Mosquitto MQTT as a broker. Is there anyone to know about how to configure RedisDB in Mosquitto MQTT broker Project? Tell me please!!!
Please Sign up or sign in to vote.
31 Dec 2014
pjsr
2 alternatives  
Hi, I am using wordpress at bluehost.com . My domain is "mysimplesurvey.com". My aim is to set up some webpages which have multiple users logged on and communicating with the same MySql database. When one user changes certain things in the database, I would like triggers to cause certain...
Please Sign up or sign in to vote.
18 Jan 2015
pjsr
Here are the beginnings of a solution: I learned how to start a background java script, and how to make a socket connection to it from a php template file. Then the script and the template can send messages back and forth over the socket. First I had to purchase a dedicated IP address from...
Please Sign up or sign in to vote.
18 Jan 2015
pjsr
i almost forgot. For the above to work, you must install start the Redis server using ssh, before running the em.js file: ./redis-server
Please Sign up or sign in to vote.
16 Apr 2015
Swethu Sri
I have build an e-commerce website using express.js The authentication method used is passport.js. We store the cookie with all the information we needed in redis.Everything was fine until we started driving more traffic.Now the problemWhen user A comes to site, logs in make a...
Please Sign up or sign in to vote.
16 Jun 2015
sudhi.pro
How to copy a sqlserver table data to redis Cache. I have 250000+ records in the sql table and i need to copy that to redis cache. And from redis cache i will query data to frontend. Any approach or code will be appreciated.
Please Sign up or sign in to vote.
24 Aug 2015
Mohan Gopi
Hi Friends, In my web application i am using redis4net for writting error log. Here everything is happning fine. I want to set redis database index for wrtting error log as well as i need to set expiry time for that error log key. So please can anyone suggest me on this.Advance...
Please Sign up or sign in to vote.
20 Sep 2015
Member 11999125
I use master/slave patter in my C#.net project.I have a problem now.I writen a hashset int master,and read the hashset from slave immediately.The data is wrong.eg.I writen 1000 data in the hashset,but only 800 get.but i can get 1000 data sooner.How i can solve this problem.I need your help,thank!
Please Sign up or sign in to vote.
24 Apr 2016
Member 1097736
1 alternative  
I read through many blog posts and documentation . But am unable to proceed further with redis implementation.What I have tried:I have installed redis locally .Inserted data and retrieved data using web api in c# code with help of servicestack drivers.I want to configure the redis...
Please Sign up or sign in to vote.
24 Apr 2016
Member 1097736
To manage cached data we must specify configuration parameter and its values.An example of redis.conf file is available in redislinkWhen redis is used as a cache server, it uses an approximated LRU(Least Recently Used)technique to evict cached data.Data can be evicted by using any 7 of...
Please Sign up or sign in to vote.
3 Aug 2016
Member 7730622
I would like to write unit test for one of my application which uses Azure Redis Cache. Since I am completely new to writing unit test code using mock/stub/fake, I am looking for help in how I can start with the basic script for mocking/stubbing cache component. It would be great, if somebody...
Please Sign up or sign in to vote.
1 Mar 2017
Sajid227
I have a very basic question,that when we deploy our application on cloud,and to manage the traffic we use load balance,Now if a user hit server 1 through load balance,his session is created with that server,and after some time his hit is refer to server two by load balance,will his new session...
Please Sign up or sign in to vote.
23 Apr 2017
Member 1097736
I have been using StackExchange.redis and StackExchange.Redis.Extensions libraries to drive data in and out of redis. Initially i used StackExchange.redis, var propertyList = ConvertToHashEntryList(productObject); db.HashSet("Product:" + productObject.ProductID,...
Please Sign up or sign in to vote.
16 May 2017
Member 1097736
1 alternative  
I am getting response for the command -sentinel masters against redis server. public string GetMasterFromSentinel(string sentinelAddress) { TcpClient server; try { var splittedAddress = sentinelAddress.Split(':'); ...
Please Sign up or sign in to vote.
30 Jan 2018
gbalamurugan
I have new in Redis cache implementation and got in simple example with getstring from Redis Cache. But Same time I didnt get any idea about Set and get list values through Redis. I have Using Provider and Repository. Please help me how to further proceed... What I have tried: public...
Please Sign up or sign in to vote.
24 Mar 2020
Shashank Laxman
1 alternative  
I Have a project that needs to be migrated from .Net framework 4.5 to .Net Framework 3.5. What I have tried: Problem is whenever i try to build project in .Net 3.5,it says Stackexchange.Redis could not be found Added package dlls to my project. Please help out or at least give some...
Please Sign up or sign in to vote.
20 Feb 2018
OriginalGriff
Answered only to remove from unanswered queue: solved by OP.
Please Sign up or sign in to vote.
1 Mar 2018
gbalamurugan
I have using dependency injection and my problems get solved public static class DIContainer { public static UnityContainer container; public static IUnityContainer Initialise() { container = new UnityContainer(); RegisterTypes(container); ...
Please Sign up or sign in to vote.
27 Mar 2018
#realJSOP
I have no idea what SETEX is, and don't care, but a simple goole search revealed that you're not supposed to set the cache time to 0. No expiration for 0 TTLs in redis store · Issue #26 · throttled/throttled · GitHub[^]
Please Sign up or sign in to vote.
1 Sep 2018
RockstarSuraj
Hi ll I am using redis cache on my local Machine. I have enabled the cache for one of my method using the cacheable anothion. Application is not able to cache my method. public class RedisConfig { @Autowired private JedisConnectionFactory jedisConnectionFactory; @Bean public...
Please Sign up or sign in to vote.
19 Dec 2018
Iris Shing
1 alternative  
I'm writing APIs using c#.Net Core One of my APIs is used to generate captcha then store to the session, I'm using Redis to store session here. And now I'm trying to write a unit test for the APIs. Cause the login API needed to pass captcha, so I need to get the captcha value from the session....
Please Sign up or sign in to vote.
19 Dec 2018
mehr.ah
In integration test you do not need to get a real value of captcha but in UI /Real test you need to take it but not from mock framework.
Please Sign up or sign in to vote.
7 Mar 2019
HarishChepuri
1 alternative  
Hi, can any one give the example for redis report queries usually we will use group by in sql queries how to achive same result in redis What I have tried: i tried using ZRange i struck at creating indexes for string
Please Sign up or sign in to vote.
7 Mar 2019
Mehdi Gholam
Read the documentation : Secondary indexing with Redis – Redis[^]
Please Sign up or sign in to vote.
14 Mar 2019
Member 14183003
I am thinking about using redis on a client device(iOS) and now wondering how it is possible. From Google it seems like someone was able to host redisDB on Android, but I am not able to find any relevant materials for iOS. So how does one go about installing and running redisDB on to a iOS...
Please Sign up or sign in to vote.
22 Mar 2019
Member 13518243
Hello there, I am developing a web service application with .NET Framework 4.5 / Web API 2 and I am using OWIN for authentication and authorization. So, for this application we need a load balancer solution then we set up that as you know after that users' tokens are not working properly....
Please Sign up or sign in to vote.
30 Mar 2019
setevoy4
Redis replication setup example with a basic Master-Slave replication and Redis Sentinel
Please Sign up or sign in to vote.
29 Mar 2019
setevoy4
In this post – some quick overview, a brief explanation about differences in Redis data storage, topology examples. In short terms but with links to detailed documentation and other useful posts on other resources.
Please Sign up or sign in to vote.
3 Apr 2019
setevoy4
The redis-py library and work with Redis Sentinel from Python
Please Sign up or sign in to vote.
17 May 2019
rohith naik
I want to run a program when Elasticache Redis starts up to load some values into it. For this I need to know when Redis starts up. I know that there is a seed file which can be provided but since the data is very dynamic, I can not place it in a file. I will need to load it on demand. The...
Please Sign up or sign in to vote.
13 Nov 2019
Dave Kreskowiak
You're going to have to ask Stack Exchange how to use their library. After all, they wrote the thing. Why would anyone else support their library?
Please Sign up or sign in to vote.
27 Feb 2020
Kiran Patel
1 alternative  
Hello, i am trying to publish data to Redis as written code below, but don't know why i didn't get data to client side.. As even i am getting data to client when i am Publishing data with same channel-name from CLI or Command window in Redis...
Please Sign up or sign in to vote.
27 Feb 2020
Richard MacCutchan
catch (Exception ex) {} That is not going to help you. If an exception occurs you are just ignoring it. At the very least you should show the actual details from the caught exception.
Please Sign up or sign in to vote.
6 May 2020
NodejsToGo
I am writing a web crawler in Node js with the request module and redis as url cache. What I try to accomplish is a constantly crawler loop (endlessly) which gets a url from redis and makes a https request. I have tried to add paralell requests...
Please Sign up or sign in to vote.
1 Jun 2020
Mohammad Nasirifar
Please Sign up or sign in to vote.
25 Oct 2020
2 7182818
With long and painful researches i decided to use session based authentication. I am developing an Web application with .Net core as backend and React js as frontend. I recently swap Node js backend to .Net Core. I am using PostgreSQL as my...
Please Sign up or sign in to vote.
2 Oct 2019
Eduard Silantiev
Deep refactoring and refinement of ASP.NET Core WEB API application code
Please Sign up or sign in to vote.
2 Oct 2019
Eduard Silantiev
Using various approaches to increase ASP.NET Core WEB API application's productivity.
Please Sign up or sign in to vote.
21 Feb 2018
alirıza adıyahşi
Creating a web farm on docker container with using redis, haproxy and abp module zero core template.
Please Sign up or sign in to vote.
16 Mar 2020
Bohdan Stupak
How to perform distributed lock between multiple instances of a microservice with Redlock.Net
Please Sign up or sign in to vote.
16 Oct 2015
Fiyaz Hasan
Creating local server farm with IIS to test out Redis session storing functionality in a ASP.NET web application.
Please Sign up or sign in to vote.
25 Aug 2016
david.ribeiro
A small set of C# classes/projects that create a simple cache component that interacts with Redis
Please Sign up or sign in to vote.
22 Nov 2019
John-ph
A simple way to design queue based messaging solution in .NET Core to solve complex problems
Please Sign up or sign in to vote.
3 Aug 2021N
Yaseer Mumtaz
ASP.NET Core Microservices With Angular 11 Front End, API Gateway, Redis and SQL Server
Please Sign up or sign in to vote.
1 Apr 2021
DaShaun Carter
Azure Cache for Redis Enterprise has been in preview since October 2020 and has already been adopted by multiple organizations. App developers who want to take familiar Redis caching and data to the next level will also want to get their hands on this fully managed Azure native service.
Please Sign up or sign in to vote.
23 Oct 2019
gbalamurugan
Solution 1: It seems that you don't want to store a key by commanding redis to store a key. Which is very inconvenient. If you don't want to change your application code than you could save it just for 1 sec, which is minimal. As setex command expect the time is positive means greater than...
Please Sign up or sign in to vote.
14 Apr 2020
Kevin Mack
Cost projections and figuring out gross margin in cloud computing
Please Sign up or sign in to vote.
12 Mar 2019
gbalamurugan
3 alternatives  
I have using Asp.net web api and the method calling another Class library which is working fine. For implementing Redis cache, I changed to class to interface. In this case the method is not fired which is in class library. I am getting the below error "Object reference not set to an instance of...