redis Questions
2
We'd like to RPUSH/LPUSH a key with an empty list.
This is for consistency reasons: when the key is read with LRANGE than whether the list is empty or not, the rest of the code behaves the same.
W...
Ricoricochet asked 10/7, 2016 at 5:17
3
Solved
Application performance is one of the main reason of using cache over relational database. Because it stores data in memory in the form of key value pair, we can store frequently accessed data in c...
Wedurn asked 13/7, 2020 at 18:21
2
I am using Spring and Spring Security and want to use spring-session-data-redis with RedisHttpSessionConfiguration to enable storing session IDs on redis (so clients wont loose their sessions when ...
Stoa asked 29/10, 2015 at 14:9
4
Solved
I google it and found two solution:
CLUSTER FORGET (http://redis.io/commands/cluster-forget)
redis-trib.rb del-node
I think CLUSTER FORGET" is the right way to do.
But I really want to kno...
Heterotypic asked 8/4, 2016 at 4:55
10
Laravel Version: 7.5.0
PHP Version: 7.2
Database Driver & Version: Redis
Everything was working fine but suddenly this error appear i changed the phpredis to predis but error is same.
Steps T...
Paige asked 12/4, 2020 at 7:31
8
Solved
My Redis container is defined as a standard image in my docker_compose.yml:
redis:
image: redis
ports:
- "6379"
I guess it's using standard settings like binding to Redis at localhos...
Trommel asked 30/5, 2015 at 14:20
3
Solved
I am currently trying to do a simple implementation for stock price candle sticks. Let's say we have a stock called XYZ. This stock receives a stream of prices (in no particular frequency), which (...
Macaroni asked 23/6, 2020 at 8:37
3
Solved
I'm using FastAPI with Redis. My app looks something like this
from fastapi import FastAPI
import redis
# Instantiate redis client
r = redis.Redis(host='localhost', port=6379, db=0, decode_respons...
6
Solved
One of my application suddenly started to give error:
Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /var/www/_slim/_core/system/generator.001.php:133 S...
2
Solved
Everytime an object has been created i want to enqueue it in a Redis queue to check for certain properties. How can i add the created object directly as a parameter to the callback? So my redis job...
Trews asked 6/11, 2018 at 9:19
3
Solved
I'd like to work with Redis for manipulating sessions.But I get failure when running the spring boot app.So I guess that this error is coming from maven dependencies especially version conflicts.
...
Kelley asked 8/10, 2018 at 11:23
1
Solved
I am connecting to an AWS redis cluster using following command
redis-cli -c -h host.amazonaws.com -p 6379
I pushed two key "X1" and "X2" into redis cache from a springboot app...
Maxwell asked 31/8, 2022 at 13:46
3
I use Redis to build a IOS SNS App (for restful api). As more user use it, errors happened.
It throws out :
Uncaught exception 'RedisException' with message 'read error on connection'
in /data1/...
2
Solved
I'm trying to start a redis server with the support for tls. Based on the documentation (https://redis.io/topics/rediscli) I execute this command:
redis-cli -a xxxxxxxxx --tls --cacert ../config/ce...
Leptophyllous asked 12/1, 2021 at 11:50
2
On a Windows 10 system running Python 3.6, when trying to use multiprocessing.Process to create a new rq worker,
multiprocessing.Process(target=Worker(qs).work, kwargs={'burst': True}).start()
...
Prehistory asked 14/9, 2018 at 17:3
2
In Jedis, I want to set some key and value with expiring time by a single invocation.
I can do this by combination of set() and expire() but it needs two invocations.
I found the following method...
3
I try to execute a hmset command on AWS Redis Cluster, and I'm getting the following "moved" error. Not sure what is going on.
MOVED 7652 10.0.4.210:6379
from rediscluster import StrictRedisClus...
Desmarais asked 12/1, 2018 at 19:4
11
Solved
I use INCR and EXPIRE to implement rate limiting, e.g., 5 requests per minute:
if EXISTS counter
count = INCR counter
else
EXPIRE counter 60
count = INCR counter
if count > 5
print "Ex...
Meltage asked 1/11, 2012 at 10:22
3
I have celery app with Redis as broker.
The code consist of the following in a loop :
running = []
res = add.apply_async([1,2], queue='add')
running.append(res)
while running:
r = running.pop()...
1
Solved
We have a Celery task that requires a Pandas dataframe as an input. The dataframe is first serialized to JSON and then passed as an argument into the task. The dataframes can have around 35 thousan...
Supplant asked 2/8, 2018 at 14:49
5
Solved
Background
Yesterday our machine crashed unexpectedly and our AOF file for Redis got corrupted.
Upon trying to start the service with sudo systemctl start redis-server we are greeted with the fo...
Archfiend asked 24/5, 2018 at 8:37
3
Solved
For lists I can do the operation:
LLEN KeyName
and it will return the size of a list in Redis. What is the equivalent command for sets? I can't seem to find this in any documentation.
3
I'm having an issue running docker compose. Specifically i'm getting this error:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.login-service.environment contains {"R...
Endostosis asked 5/5, 2018 at 0:13
4
Solved
When running the redis server, it shows address already in use
This is the stacktrace:
45546:C 12 Jul 2019 10:04:41.888 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
45546:C 12 Jul 2019 10:04:41...
Reichsmark asked 12/7, 2019 at 9:16
2
I've recently started to use Redis and RQ to run background processes. I built a Dash app which works fine on Heroku and used to work locally as well. Recently, I tried to test the same app locally...
Alexandretta asked 17/1, 2019 at 14:58
© 2022 - 2024 — McMap. All rights reserved.