Questions tagged [cache-expiration]
67 questions
0
votes
1 answer
How to set expiration for @Cacheable in Spring Boot?
I have the following cache implementation in a Spring Boot app and it is working without any problem. However, I want to define expiration for this approach. Is it possible to set expiration for @Cacheable?
I look at Expiry time @Cacheable spring…
user16409822
0
votes
2 answers
Mechanics of ASP.NET Cache Expiration?
I have a task that I want to be run 8am daily and am considering this solution: https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/
But I'm not understanding the mechanics of how it works.
Say user X visits the site on Friday at…

rlb.usa
- 14,942
- 16
- 80
- 128
0
votes
1 answer
Force PHP Session Destroy Using Meta Refresh
I have searched extensively, and although I have found many questions regarding managing PHP sessions expiration times, I have found none dealing with my proposed method. I have working code, but wanted to pass it by this community to see if there…

dmarlowe
- 1
- 2
0
votes
1 answer
Can I retrieve an expired cache entry from an Infinispan server listener using @ClientCacheEntryExpired?
I am modifying an embedded Infinispan application to use the Infinispan server and HotRod client. The embedded implementation relied on detecting cache expiration events in a listener. Using the "pre" event, I am able to read the expired entry and…

TomEE
- 578
- 1
- 7
- 11
0
votes
1 answer
how can i set new cashe just in 10s using laravel Cashe
I used put function for make new manual Cashe. for example :
$cashtime =Cache::put('filekey', 'mycashtime', 20);
and sent it to view but it not expired .
when i send it to view it will back me true. but after 20s have to send me false and expire…

Neda Zare
- 1
- 2
0
votes
0 answers
How to test cache expiration in rails with rspec?
I want to test cache expiration in a Rails view. The view looks like this:
# products/index.html.erb
<% @products.each do |product| %>
<% cache product do %>
<%= render product %>
<% end %>
<% end %>
Product's partial renders owner, items,…

Hirurg103
- 4,783
- 2
- 34
- 50
0
votes
1 answer
Apache ignite cache expiry
I am using Apache Ignite in my python project. I am using 'pyignite' client to make a connection.
I need to set some expiry time for cache. Also, need to configure system resources for apache ignite. If anyone knows the configuration help me.

karthik
- 283
- 2
- 15
0
votes
1 answer
Show "Page expired" on back button - Laravel
I have a form that is sent via POST method and it display's a blade view after submitting.
Many users hit the browser back button and resubmit the form. How can i show a "Page expired" when the user hits the back button?
I want this so that the user…

dip
- 189
- 6
- 18
0
votes
1 answer
Need to execute code before Ignite cache ExpiryPolicy
I am using Ignite cache with ModifiedExpiryPolicy and need to execute a line of code before event execution. Any help?
IgniteCache expiresCache = cache.withExpiryPolicy(new ModifiedExpiryPolicy(new Duration(Time.MINUTES,…

Sarah Tammam
- 134
- 2
- 9
0
votes
0 answers
Caffeine cache, how to get value that expired?
There is a task, to get an element from the cache if there is no access to the database. If the token has expired. How can I get an expired cache element? Is there any cache for Spring which can do it?

Kirill Shiryaev
- 339
- 2
- 8
0
votes
1 answer
How to store objects with an expiry date
I'm designing an ASP.net core system that deals with objects having an expiry date (2 days OR 1-3 months). Once this expiry date reached, expired objects should be removed.
We are using SQL + a Cron job to remove old items. That's not really…
user4478810
0
votes
1 answer
How to get a key without changing the existing expiry time in couchbase using java client?
I have a couchbase key K which stores a JsonLongDocument V.
Whenever I see an event E at time T, I increment the V by 1 with an updated expiry of T+n(sec) using the following java client function :
bucket.counter(K, 1, 1, n)
I also occasionally…

N A
- 831
- 2
- 8
- 28
0
votes
3 answers
Get shared preferences specific value last updated date and time
I am using shared preferences to store userId once user login to the app. I need to expire(delete) the stored userId after 30 days once the userId is stored on shared preferences.
Is it possible to get the last modified date and time of specific…

Prabhu M
- 3,534
- 8
- 48
- 87
0
votes
1 answer
Infinispan Setting Cache-Wide Lifespan dynamically at runtime
I'm working with Infinispan 8.1.0.
In my project we have chosen infinispan cache like a session Cache the way that each time one user is connected to my system, a named cache, based on user-id and session-id, is created.
Using infinispan like a…

Alex
- 1,515
- 2
- 22
- 44
0
votes
1 answer
How does CloudFlare's 'purge' feature work?
I've adjusted the expiration tags on many of the files of my website (with .htaccess). As you know, this can create a tiny problem of a users browser not showing the most updated version of a website until the cached version of the file expires.
I…

John R Perry
- 3,916
- 2
- 38
- 62