Skip to content

Cache is king baby! Let's go 🚀#1574

Merged
jelveh merged 6 commits intomainfrom
readdir-cache
Sep 17, 2025
Merged

Cache is king baby! Let's go 🚀#1574
jelveh merged 6 commits intomainfrom
readdir-cache

Conversation

@jelveh
Copy link
Copy Markdown
Contributor

@jelveh jelveh commented Sep 17, 2025

The beginning of client-side caching to improve performance until we have full client-side replication.

Right now we're going to use the very naive, but safe, approach to purge the entire cache whenever there is change in the user's fs. We're going to incrementally improve this; but for now, better safe than sorry!
This update introduces event listeners for 'item.added', 'item.renamed', and 'item.moved' events, triggering a cache flush on each event to ensure data consistency in the file system module.
@jelveh jelveh merged commit e37166d into main Sep 17, 2025
4 checks passed
Salazareo pushed a commit that referenced this pull request Sep 18, 2025
* Implement the first naive version of `readdir` cache

* Purge the entire cache on every single mutation

Right now we're going to use the very naive, but safe, approach to purge the entire cache whenever there is change in the user's fs. We're going to incrementally improve this; but for now, better safe than sorry!

* Add socket event listeners to flush cache on file system item changes

This update introduces event listeners for 'item.added', 'item.renamed', and 'item.moved' events, triggering a cache flush on each event to ensure data consistency in the file system module.

* increase exp time for the cache

* Update readdir.js

* Update index.js
@jelveh jelveh deleted the readdir-cache branch September 25, 2025 00:17
Salazareo pushed a commit that referenced this pull request Sep 25, 2025
* Implement the first naive version of `readdir` cache

* Purge the entire cache on every single mutation

Right now we're going to use the very naive, but safe, approach to purge the entire cache whenever there is change in the user's fs. We're going to incrementally improve this; but for now, better safe than sorry!

* Add socket event listeners to flush cache on file system item changes

This update introduces event listeners for 'item.added', 'item.renamed', and 'item.moved' events, triggering a cache flush on each event to ensure data consistency in the file system module.

* increase exp time for the cache

* Update readdir.js

* Update index.js
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