Questions tagged [redis-cache]

Redis is an open source (BSD licensed), in-memory data structure store, use this tag for specific cache usage

Redis is an open source (BSD licensed), in-memory data structure store, use this tag for specific cache usage.

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Site: https://redis.io/

How to Use Azure Redis Cache: https://learn.microsoft.com/en-us/azure/redis-cache/cache-dotnet-how-to-use-azure-redis-cache

143 questions
25
votes
2 answers

Can Redis write out to a database like PostgreSQL?

I've been using PostgreSQL for the longest time. All of my data lives inside Postgres. I've recently looked into redis and it has a lot of powerful features that would otherwise take a couple of lines in Django (python) to do. Redis data is…
deadlock
  • 7,048
  • 14
  • 67
  • 115
18
votes
2 answers

Name or service not known [tcp://redis:6379]

i am having a problem setting up redis cache with laravel. i have a redis server runnig on my local machine: my .env: i have the localhost on port 6379 ready and listened: someone plz tell me what's happenig here?
oajmi
  • 187
  • 1
  • 1
  • 14
14
votes
1 answer

Why are connections to Azure Redis Cache so high?

I am using the Azure Redis Cache in a scenario of high load for a single machine querying the cache. This machine roughly gets and sets about 20 items per second. During daytime this increases, during nighttime this is less. So far, things have been…
Christian
  • 4,345
  • 5
  • 42
  • 71
8
votes
2 answers

Socket already opened issue when using Redis cache along with Node.js

I am facing, "Error: Socket already opened issue" when I am using Redis along with my node.js project. I am trying to cache database results into Redis cache.. When Redis key is not empty, I will pick records from Redis Key. When its empty, I will…
Sesuraj P
  • 111
  • 1
  • 1
  • 6
8
votes
1 answer

Migrating from StackExchangeRedisCacheClient to RedisCacheClient

I am building a project based on StackExchangeRedisCacheClient and obsolete has popped out: 'StackExchangeRedisCacheClient' is obsolete: 'This interface will be removed with the next major. Please use RedisCacheClient instead.' so i'm trying to…
8
votes
1 answer

Setting expiration for IDistributedCache.SetAsync while using AddDistributedRedisCache

I am using .net core api (2.1) with aws redis cache. I don't see a way to set expiration to the IDistributedCache.SetAsync. How is it possible? My code segment is below: // Startup.cs public void ConfigureServices(IServiceCollection services) { …
user007
  • 1,504
  • 2
  • 18
  • 51
8
votes
4 answers

java.lang.ClassCastException: DTOObject cannot be cast to DTOObject

I am facing a weird issue in my application which runs on Spring Boot 1.4.0M3 which is using Spring cache implementation where provider is Redis where I receive classCastException that same object cannot be casted I am using Mongodb as database and…
rajadilipkolli
  • 3,475
  • 2
  • 26
  • 49
5
votes
0 answers

Rails Keycloak gem with redis cache store throws ActionDispatch::Cookies::CookieOverflow

I am using Keycloak gem in my Rails application. As per the keycloak documentation, keycloak uses cookies. In my application, I am using Redis cache store to store these cookies. config.session_store :cache_store, key: ENV['APP_SESSION_KEY'] It…
5
votes
1 answer

nestjs:how to delete redis cache with prefix in typeorm

I have a service class with create,list,and update methods to modify entity I set the redis cache in list methods,and the cache key is list_cache_1,list_cache_2,... my question is, how to delete all releated caches in create or update methods,…
Kent Wood
  • 1,392
  • 2
  • 14
  • 30
4
votes
1 answer

AWS RedisConnectionException: No connection is available to service this operation. SocketClosed Exception

Suddenly we started getting below mentioned Exception when hitting Redis Cache (AWS). It was working fine in the past. We have seen in that Current Connections count for Redis node goes on increasing. No Connection available" exception while…
4
votes
1 answer

Reliable Redis cache TTL expiration hook

Does Azure Redis cache allow me to set a function to reliably trigger whenever a certain key in my cache expires?
yuvalm2
  • 866
  • 2
  • 10
  • 27
3
votes
2 answers

Django Redis problem with Docker: InvalidCacheBackendError: No module named 'django.core.cache.backends.redis'

I want to use Redis through docker for the cache but got this error. django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'django.core.cache.backends.redis.RedisCache': No module named…
3
votes
1 answer

My Superset cache is set to Redis, but I still get cache warning in logs

I am getting cache warnings in my log files and am not sure why. My cache override: CACHE_CONFIG = { 'CACHE_TYPE': 'RedisCache', 'CACHE_DEFAULT_TIMEOUT': 86400, 'CACHE_KEY_PREFIX': 'superset_', 'CACHE_REDIS_HOST': 'localhost', …
Pompey Magnus
  • 2,191
  • 5
  • 27
  • 40
3
votes
0 answers

Spring AWS Elastic cache Redis session time out/TTL issue for key PRINCIPAL_NAME_INDEX_NAME

Tools used: springBootVersion = '2.1.3.RELEASE' jdk-11.0.4 AWS Elastic Cache -Redis How do we kill the cache indices created by Spring default session by setting timeout (TTL) or programmatically - By default…
3
votes
1 answer

How to use Redis cache for pagination?

I want to do pagination with redis cache, i'am using Node.js as my back-end and i'am using npm redis-scanner package for scanning through the keys . Here i'am unable to go to a particular key and fetch next 15 keys from redis cache. How do i do it?
1
2 3
9 10