Questions tagged [redis]

Redis is an open-source, networked, in-memory, key-value data store.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
348 views

2-tier c# cache

I have slightly altered Marc Gravells 2-tier cache code which can be seen here. I changed it to use Stackexchange.Redis instead of Booksleeve and also added some retry logic and serialization. ...
3
votes
0answers
72 views

Token generating library on Redis

This is a token generating library for Go that runs on top of Redis. I'm using it as part of a larger projects. The library needs to be able to generate and validate tokens and return the associated ...
2
votes
0answers
142 views

Redis lua - game leaderboard “overview”

Here is the code I invoke as Lua script in Redis. I use Redis sorted set to store game scores. This function is used to get some kind of overview of leaderboard. It returns id, score and rank of: ...
2
votes
1answer
291 views

Redis lock implementation

Considering I'm not implementing distributed lock mechanism, is this code correct and clear? ...
2
votes
0answers
1k views

Node.js and Redis based chat application

I have been worked on creating a chat tool similar to vk.com. Right now I have done a simple chat which requires only authentication via a PHP website and everyone can chat with each other. I used the ...
2
votes
0answers
366 views

RESTful API parsing DBF data HSET in Redis

I have this working code, but would like your review: sync.coffe ...
1
vote
0answers
49 views

Singleton pattern for Redis connection

Recently I have learned about singleton design pattern. I have tried to implement Redis connection following singleton design pattern. conn/redis.go ...
1
vote
0answers
111 views

Fetch key from MySQL DB if doesn't exist in redis DB

This code gets data from a MySQL database, such that if a key doesn't exist in a Redis database, then fetching of data needs to be done from the MySQL database and then stored in Redis cache. As such, ...
1
vote
0answers
760 views

JavaScript to connect to Redis using Singleton

I'm trying to create a class to connect to Redis in Express. I don't think my code is good enough as I got variable db hanging out. ...
1
vote
0answers
277 views

Optimizing redis cache

I am new to Express so I'd like to clear my code. This is Express with Redis support. I am getting someId and then I am searching it on Redis or using scraper which ...
1
vote
0answers
226 views

Semaphore with Node and Redis

I'm learning Node and Redis and created a semaphore for master/slaves. ...
1
vote
0answers
245 views

Fast implementation of SQL Queries in Key-Value Store

I have an existing MySQL schema without rows and have already made a list of all SQL queries I need. Now I know that Redis is a key-value store, so you can only fetch data by key and save for example ...
1
vote
0answers
317 views

Data lookup table with Redis and API call

This class' function is to change a given array's data into an ID. The list is set by a configuration file. I have DI the outer array and objects into the class so that if there are any dependencies - ...
0
votes
0answers
19 views

Getting redis sentinel info in Rust

I've cobbled together some Rust code to display Redis master/slave information. As a Rust newbie, I'd appreciate some review feedback. ...