Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

smashwilson
Copy link
Contributor

@smashwilson smashwilson commented May 14, 2017

Track the usage of cache data. Add a pane item that displays the current cache contents, live, and allows selective or bulk cache flushing. Totally low-priority tinkering from me.

Here's what I've got so far, pardon the Developer Art 🎨:

screen shot 2017-05-13 at 10 01 57 pm

  • Give the Cache an event emitter and an onDidUpdate event.
  • Store extra cache entry metadata: age and hit count.
  • Display the cache data in a PaneItem triggered with github:show-cache-diagnostics.
  • Sort cache entries within the table: alphabetic by name, oldest first, newest first, most hits, fewest hits.
  • Convert the cache key column to buttons that evict that cache entry on click.
  • Add a button to flush the entire cache at once.
  • Truncate cache entry values at some reasonable maximum size.

@smashwilson
Copy link
Contributor Author

Eh this might be handy.

@smashwilson smashwilson merged commit e57e33f into master May 1, 2018
@smashwilson smashwilson deleted the aw-cache-pane branch May 1, 2018 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants