Questions tagged [in-memory-cache]
21 questions
7
votes
0 answers
Apollo Client + NextJS memory leak, InMemoryCache
Official Apollo and NextJS recommendations are about to create a new ApolloClient instance each time when the GraphQL request should be executed in case if SSR is used.
This shows good results by memory usage, memory grows for some amount and then…

Valerii Kulykov
- 181
- 1
- 1
- 5
1
vote
1 answer
Does it make sense to add some in-memory cache when using AWS lambda?
Let's say that I have a value stored in Redis that it's periodically updated. Now, let's say that I want to avoid fetching this value every time I need it in my application: I could cache this value in memory since I know that it's guaranteed that…

Murilo Sitonio
- 270
- 7
- 30
1
vote
1 answer
@Cacheable duplicates inner list of DTO returned from JOOQ query
I'm new to JOOQ and Spring caching and using version 3.10.6. I'm trying to cache a query result so I don't need to go to database every time. The fetching of the query goes smoothly there is no problem in that but when you execute this query again,…

barisc
- 41
- 5
1
vote
0 answers
Specify size limit of the items going to be set in cache in nestjs In-memory cache
Is there any option to set the maxSize(in bytes) of the cache or the size limit for the items going to be stored in the in memory cache in nestjs .
My current implementation looks like :
//app module
CacheModule.register({
max: 100,
…

Dosank
- 41
- 2
0
votes
1 answer
Is there a standard way of a simple in-memory caching code in .NET Core?
I have an IHostedService that saves a reference table from the database to cache in .NET Core 6. Meaning, the information saved will not be changed; it's just a reference table. Though there were probably multiple users who will access this, the…

choopau
- 2,209
- 5
- 21
- 28
0
votes
0 answers
How to override apollo client cache policy (cache-first) to make graphql calls?
I have a widget in my react application, where user can refresh to get the newly added tasks in the last hour. I am using cache-first policy to cache my data. But, whenever I am trying to refresh my widget within the same minute, network call is…
0
votes
0 answers
Apollo Client Cache Read Policy
I have two queries like so:
const GET_GROUP_DATA = gql`
query GetGroups {
groups {
id
name
type
...etc
}
}
`;
const GET_FORM_DATA = gql`
query GetFormData {
contactTypes {
type
}
groups {
…

Ray
- 49
- 6
0
votes
0 answers
C# MemoryCache to store different data type
I'm using Microsoft.Extensions.Caching.Memory, as I hav read it is the newer implementation of System.Runtime.Caching.
I have been reading that it's not recommended to have more than one instances of MemoryCache along the application to take…

JuanDYB
- 590
- 3
- 9
- 23
0
votes
0 answers
TypeError: store.get is not a function with Cache Manager 5.2.0 in NestJS
I am using Cache Manager version 5.2.0 in my NestJS application to cache some data retrieved from my database. However, when I try to retrieve the cached data using this.cacheManager.get('degrees') in my getAll() method, I receive the following…
0
votes
0 answers
Java in memory Caching library that support methods with element level ttl
I would like to set the expiry time of a member of an cache.
I want the custom ttl when the object should expire.
I know I can set it for the whole cache, e.g.
Cache cache = manager.getCache("MyCache");
CacheConfiguration config =…

anand
- 1
- 1
0
votes
1 answer
Output Caching vs In-Memory Cache
Microsoft introduced Output Caching with .NET 7.
As far as I understood, Output Caching caches the HTTP response while In-Memory Cache stores data in the memory of the server.
I don't feel sure about which of the two I should use from now on. Is…

dario
- 2,861
- 3
- 15
- 34
0
votes
1 answer
Redis Cache + InMemoryCache implementations, we need them both in a configurable way
i have a senario , currently both redis cache and inMemorycache is being used in project.we want something configurable like pick value from Appsetting then initialize either a redis service or in memory cache service..and we can switch between them…

Shoaib Ismail
- 7
- 2
0
votes
1 answer
Redis : Get all keys by providing one of the value in the values list
In redis I'm planning to store key as a unique string and value will be a list.
I have a use case where I need to do 2 things.
First, I need to get all the values associated with a key by providing the key as input.
Second, I want to get all the…

Jibit George
- 76
- 4
0
votes
1 answer
How to use in-memory Caching with API method parameters
I am trying to learn about caching in .Net Core and have read about in memory-caching which I found pretty easy. But let's say a method returns all Employees but you don't want to return all of them, but lets say 10 at a time. So the API method…

Malin
- 145
- 7
0
votes
0 answers
How to fetch the first key from in-memory cache in .NET Core?
I'm working on some solution where I need first value of the in-memory cache and I don't know the key of the first value.
How can I get the key of item at beginning of the in-memory cache?
I'm using this:
IMemoryCache _memoryCache;
from the…