Skip to content

Add zoxide-only caching with cache invalidation#51

Open
theherk wants to merge 1 commit intoMLFlexer:mainfrom
theherk:cache
Open

Add zoxide-only caching with cache invalidation#51
theherk wants to merge 1 commit intoMLFlexer:mainfrom
theherk:cache

Conversation

@theherk
Copy link
Copy Markdown
Contributor

@theherk theherk commented Apr 6, 2026

  • Add cache_ttl parameter to switch_workspace() and get_choices().
  • Cache only zoxide results; always fetch active workspaces fresh.
  • Filter active workspaces from cached zoxide list to avoid duplicates.
  • Add invalidate_cache() method and corresponding event.
  • Default cache_ttl is 0 (no cache) for backward compatibility.

- Add cache_ttl parameter to switch_workspace() and get_choices().
- Cache only zoxide results; always fetch active workspaces fresh.
- Filter active workspaces from cached zoxide list to avoid duplicates.
- Add invalidate_cache() method and corresponding event.
- Default cache_ttl is 0 (no cache) for backward compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant