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
0
votes
0 answers

Redis serialization desrialization issue with cache

I'm implementing Redis cache in Spring boot. I'm using a serializer in the configuration, still it is throwing the serialization error. I've configured the configuration class as below @Configuration @EnableCaching public class RedisConfig { …
PRJ
  • 73
  • 9
0
votes
0 answers

springframework.data.redis.serializer.SerializationException: Cannot serialize

I have a problem with Redis Cash. When I try call method getById I get: Action.handleValidationException.error validate exception: org.springframework.data.redis.serializer.SerializationException: Cannot serialize Each of my entities extends…
0
votes
1 answer

Google cloud memory store redis by default sets maxmemory-gb equals to instance memory. Does this pose a problem for eviction when cache is full?

I have a google cloud memory store instance M2 tier with 10GB capacity. I did not set any maxmemory-gb for it. By default it sets equals to instance capacity. Now my question is when it reaches the threshold it starts to eviction least recently used…
Hessam
  • 1,377
  • 1
  • 23
  • 45
0
votes
0 answers

Populate the redis cache from an external API

I have a requirement where my application needs to query redis to get the cache value. And redis cache should be populated with the values got by making a HTTP call to a different API endpoint. And these values should be available before my…
Ashay Fernandes
  • 353
  • 4
  • 14
0
votes
0 answers

Delete all Redis keys starting with a String using @CacheEvict

I am using Redis cache for caching (in a Spring boot application). I want to delete all keys starting with a Prefix String which is formed through the code and will look something like--> ABC:env:userAppId: I want to drop all keys from Redis cache…
0
votes
0 answers

issue on MasterSlaveServersConfig with Redisson client in Redis

how to resolve bean creation exception while using redisson MasterSlaveServersConfig this is the snippet that works for useSingleServer @Configuration public class RedisConfig { @Bean public Config config() { Config config = new…
0
votes
0 answers

Spring boot app unnecessarily adds "ClassName._class" property in redis

I have below POJO "MyClass" which is being saved in Redis. class MyClass { @Id private String someId; private GenericAnimalID genericAnimalID; @Transient private GenericAnimal genericAnimal } class GenericAnimalId{ …
0
votes
0 answers

Why triggered only one cache? (RedisCacheManager and CacheOperationInvocationContext issue)

I configure first_cache and it works fine. But when I want add second_cache in FirstCasheResolver CacheOperationInvocationContext has only one cache while RedisCacheManager has two caches. Also SecondCacheResolver even not triggered. Please help…
0
votes
1 answer

how update cached data when main data is change in laravel

i want to use a cache of laravel for ex: index method on a specific controllers! i use Cache::rememberForever method of laravel cache. i dont use Cache::remember with ttl time for caching data! my question: i dont no when and how i update data in…
Rasoul Karimi
  • 49
  • 1
  • 6
0
votes
0 answers

Caching by a custom interface from IDistributedCache

I want to implement a custom interface from IDistributedCache and create a dynamic key for all queries in my services but I have a problem. When I have an Id in GET(Id), I can create a unique key by Id but when my query is Getall(), I don't have an…
0
votes
1 answer

How to update a table data when the redis cache expires 8n java

I have implemented redis cache in my springboot project. There is a date column in a table which needs to be updated when a user access a company account. This column update should be done only when redis cache expires I tried creating redisTemplate…
Sai
  • 1
  • 1
0
votes
0 answers

Cannot create redis cache on azure: Redis Management Client error

I am trying to create a simple redis cache on azure via ansible. Here's my code: - name: Create an Azure Cache for Redis azure_rm_rediscache: resource_group: 'dev-rg name: 'dev-cache' sku: name: basic size: C1 But, I'm having this…
0
votes
0 answers

blog\bootstrap\cache directory must be present and writable. Script @php artisan package:discover --ansi handling the post-autoload-dum

I deleted temporary files in file bootstrap and run "composer dumpautoload" when run "composer dumpautoload" Error occurs Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi In PackageManifest.php line…
0
votes
1 answer

Guidance for deploying Redis Cache for Kubernetes Microservices

I am looking to implement Redis Cache for a number of web applications in Kubernetes, but am not sure how exactly to architect the Redis Cache part. I was thinking that if I have 5 replicas of my application, they could all use a single Redis Cache…
Josh Wright
  • 422
  • 3
  • 12
0
votes
3 answers

can't read properties for SET/GET in redis and node.js

I just start to explore redis. I want to cache some data using redis. I set up redis connection in the server.ts file and export it from there. Import it in my controller function and try to use set and get but this error comes for both get and…
noob_developer
  • 183
  • 3
  • 11