Redis is an open-source, networked, in-memory, key-value data store.
3
votes
1answer
38 views
Redis Cache Data source code - Retrieve/Set/Invalidate actions
This is my RedisDataSource code. What I am mainly interested in is how the retry policy could be improved and if using WindowsAzure Trainsient Fault Handling this case (using Redis Azure Cache) makes ...
3
votes
1answer
69 views
Async distributed locking with StackExchange.Redis
I have been trying to write an analogy to this approach to distributed locking with two differences:
making it asynchronous
making it work with StackExchange.Redis rather than AppFabric Cache.
My ...
3
votes
1answer
53 views
Reducing lock contention for a caching utility, or make it totally lockless but threadsafe
My Java program is a module called configProxy which fetches configuration entries from a remote node (say from a Redis instance). When the caller calls the ...
16
votes
2answers
235 views
API for looking up Japanese postal code
Most of my experience is in Python, Java and embedded C, and I need to learn Scala and Play for a new job. As an exercise, I decided to create a very simple API for looking up area by postal code, ...
5
votes
3answers
275 views
Chat logger using Redis
I'm developing a Java EE project which uses Redis through the Jedis library. I'm retrieving the chat history of a particular channel from the servlet context and if absent, from Redis.
The PMD ...
1
vote
1answer
161 views
Store CSV in Redis
I needed to make a small script to read a csv file and store 2 columns in Redis. Can you guys take a look over the code and let me know how I can improve my code style?
...
2
votes
1answer
81 views
LREM command for redis-like plugin
I had some difficulties implementing a redis-like plugin basil.js, particularly the LREM method. The complexity was to loop only once (and not the whole array every time if we have ...
2
votes
0answers
75 views
RESTful API parsing DBF data HSET in Redis
I have this working code, but would like your review:
sync.coffe
...
3
votes
1answer
74 views
User-logging authentication
I'm little frustrated because I don't know how well I can refactor this script. I wrote the authentication function but it's too complicated, maybe too large in one function, and seems like spaghetti ...
6
votes
1answer
53 views
Creating a server for user Internet orders
I've been learning the basics of node over the last couple of days and finally hooked up what I needed. I'm just after someone to comment on if I have gone the right way around this task.
It creates ...
1
vote
0answers
90 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 ...
3
votes
0answers
73 views
Knowing who is the user in every request (in every action and every view) [closed]
First: I have many model classes that are mapped from/to tables using EF. Two of them are User and UserCookie, which are stored ...
1
vote
0answers
142 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 - ...
3
votes
1answer
422 views
Model for web applications
I'm developing a model for web applications. The database that I use is Redis.
I created special DbField objects like ...
3
votes
0answers
121 views
Iterating over JSON docs
This Lua code runs in redis. It iterates over some JSON docs, and applies some logic based on the user (if any) making the request. I'm sure there's a lot I can improve here.
...
5
votes
0answers
386 views
Redis rate limiting in Lua
I've implemented a rate limiter for redis in Lua, and I'm wondering if anyone has any suggestions that might improve the performance.
An example use:
...
1
vote
1answer
68 views
Using Redis to store word occurences
I am doing a project where I am analyzing a group of Tweets.
What I need to do is find the occurrence of each individual word. I am fairly new to Redis, so I am not quite sure that my solution is ...