which db or library I can use to cache my API resp...
# webassembly
m
which db or library I can use to cache my API response in web wasm?
c
What kind of cache do you want? In-memory, on-disk?
m
on disk
c
What kind of data do you want to cache?
m
i have list of objects
i want to store all items in db'
c
I maintain a pure-Kotlin cache library. I could add WASM support in the next ~week if I can manage to get the correct Node version running in CI. Currently, it supports: • in-memory caching, with expiration policies • LocalStorage-based caching for Kotlin/JS I haven't really done much of WASM development until now. Is accessing the web storage APIs different from WASM? If it's the same, I could add LocalStorage/SessionStorage for WASM in a ~week or so too.
m
looks good
c
m
sure
a
I also have a key value storage, that supports kotlin/wasmJs through localStorage. It is not a database for sure, but a good key value store