Modify

Ticket #533 (closed enhancement: Moved to GitHub)

Opened 2 years ago

Last modified 3 months ago

Cache Iterator?

Reported by: jason.york@… Owned by: kurtwiersma
Priority: minor Milestone: Uncategorized
Component: framework - caching Version:
Keywords: caching keys iterate Cc:
Blocked By: Blocking:

Description

What do you think of adding a cache iterator? I've been working on some custom capability to inspect and clear individual items from the Mach-ii cache.. (maybe a future Dashboard feature?) However, the attached patch may be a first step to have the framework return a cache iterator.

This implementation for LRU and TimeSpan? grab the keys right when the iterator is created, so it's possible that the entries my not exist when the caller actually iterates through the list. At some level you will always have that problem unless you make a copy of the entire cache... it may not be worth the memory cost..

Attachments

cache-iterator.patch Download (4.0 KB) - added by jason.york@… 2 years ago.
cache iterator patch

Change History

Changed 2 years ago by jason.york@…

cache iterator patch

comment:1 Changed 2 years ago by peterfarrell

  • Keywords caching keys iterate added
  • Milestone set to Uncategorized

comment:2 Changed 3 months ago by matt_woodward

  • Status changed from new to closed
  • Resolution set to Moved to GitHub
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.