Questions tagged [cache-expiration]

67 questions
1
vote
2 answers

URLConnection.setUseCaches(true) - when will cache expire?

I have a simple question: if I use URLConnection.setUseCaches(true) when loading something from web, when will those cached files expire? I'm developing for android, but it hardly makes any difference... So when will cache files be removed from SD…
Eugene Chumak
  • 3,272
  • 7
  • 34
  • 52
1
vote
1 answer

System.Runtime.Caching Absolute Expiration evicts data as designed, but how to implement a non-evicting expiring data strategy?

I am using the System.Runtime.Caching MemoryCache in my MVC3 application to cache seldom changed, but often accessed data. I have set an absoluteExpiration of 30 minutes. This works great. Every 30 minutes, the application expires the data in the…
mobiletonster
  • 407
  • 1
  • 6
  • 10
1
vote
1 answer

Update expiry length of ignite cache

Is there any way to update the expiry legnth for a cache that is already created in ignite? like I create this cache and set expiry policy as 5-day length, after some time I want to make the cache expiry policy to 10-day length. I prefer to not…
Vincent Y
  • 109
  • 6
1
vote
0 answers

Cakephp3 cache duration not expiring

Hello everyone I work with cakephp3 I have implemented the cache from doc but the duration to expire the cache does not apply. I tried to use minutes and hours in the duration but it doesn't work thanks for your help. Here is my cache…
bastos93
  • 11
  • 3
1
vote
1 answer

In Android How can I Set Glide Signature (Cache expiry) for the cached Images

What I need is : I am using glide to show images in my app. I need to set a expiry time for cached images in glide. I understand that we can use signature(Which is now changed as GlideImageVersion). I found that to set expiry for 600 seconds, I have…
1
vote
1 answer

What is refresh token and can we control refreshing the ID and Access token in AADB2C?

My team is working on implementing or rather configuring B2C login for our client's mobile app. We got the configuration setup to a point where the user can login to the app once and the token gets cached in MSAL. And next time onwards, the user is…
1
vote
1 answer

What is the precision of the cache expiration timeout in ASP.NET?

In my application I'm using absolute expiration for a cache entry: HttpContext.Cache .Insert (cacheKey, true, null, DateTime.UtcNow.AddMinutes (3), TimeSpan.Zero, CacheItemPriority.Default, SomeCallbackFunction); Everything is working more…
user151323
1
vote
0 answers

Add listeners to cache expiration in Redisson

I am trying to configure my redis sentinel client to perform my specific jobs on expire event for different keys that I put to the cache. This jobs should check whether to renew the cache value or to let it expire. Unfortunately, I couldn't find…
dvelopp
  • 4,095
  • 3
  • 31
  • 57
1
vote
1 answer

Session expiration date are fixed to 1969

I'm working on a website, and i found that some cookie expiration date are fixed to 1969. My question is why? Are these cookies persistent or null? PS. I'm running Magento 1.9
Alfredo Lanzetta
  • 314
  • 4
  • 18
1
vote
0 answers

How does the Infinispan single file store clean up duplicate keys if they are put periodically with an expiration lifespan?

(Question in query section towards middle) Environment: Infinispan 9.13 Embedded cache in a cluster with jgroups (but can see same behavior in local basiccache too) Single file store No explicit eviction nor passivation
1
vote
1 answer

How to prevent HttpRuntime.Cache to remove items in ASP.NET 4.5?

This is a follow-up to this question, which contains contradictory answers. I am also interested in an answer related to a more recent version of ASP.NET. My application uses HttpRuntime.Cache to cache some lists of models that should never expire.…
1
vote
1 answer

Guava Cache expireAfterWrite is only applicable with getIfPresent used?

This question is to validate an observed behavior to ensure Guava Cache is used in correct way. I have setup two Guava Caches (see code below): with and without a builder - as Guava documentation states: Caches built with CacheBuilder do not…
G T
  • 37
  • 4
1
vote
1 answer

Document Expired Back Browser Pressed When Searching in Codeigniter

I have a program where i have searching code. When i do searching it will show a page with searching result. That page will display some content that can be click. When i click that content it will display me the detail of the product. From this…
Nicky Apriliani
  • 321
  • 4
  • 25
1
vote
1 answer

Timeout for a cache file in php

In php, i create a cache file in order to stock complexe results variables. One variable, one cache file. Well done its work fine. The problem lies in the term of the cache. For the moment i put into the file the timeout and the variable, but its…
Jeremy
  • 279
  • 2
  • 13
1
vote
0 answers

How can I manage the lifetime of my PHP sessions?

I am quite new to PHP, so I'm working on a simple project to practise. However, I can't manage to make the session management work properly. What I want is that when the browser is closed, the data (the current page the user is at) is saved for an…
rvvermeulen
  • 169
  • 8