Install
For React applications, also install the bindings package:
Create a cache
Use cache.set, cache.get, and cache.del anywhere in your app; the same API works on the server and in the browser.
Persist in the browser
Add persist when you want values to survive reloads:
Give persisted instances a stable id so the invalidation bus can sync keys across tabs.
Wire React
Wrap your tree with StorageProvider and read values with useStorage. See React hooks for the full setup.
Use with DI
The Brushy Suite example projects register storage as a DI token in shared/cache/ and inject it into feature services. See Examples for Vite, Expo, Express, and Fastify layouts.