Good Design Pattern for Refreshing Cache

J

johnhurt

Any ideas for good design pattern references/ideas for refreshing a
cache based either upon
1) elapsed time interval
or
2) an event gets triggered, such as DB table changed?

Thanks
 
N

none

Any ideas for good design pattern references/ideas for refreshing a
cache based either upon
1) elapsed time interval
or
2) an event gets triggered, such as DB table changed?

Thanks
for 1)
when you add an item to the cache set an expiry time or duration. Check
the expiry time when you read an item from the cache, if it has expired
remove it from the cache instead of returning the cached item.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top