Skip to content

How to implement temporary storage of the infiniteHitsCache cache? #6469

Answered by Haroenv
lpkobamn asked this question in Q&A
Discussion options

You must be logged in to vote

There's no builtin TTL in the session storage cache, but you can use https://github.com/algolia/instantsearch/blob/master/packages/instantsearch.js/src/lib/infiniteHitsCache/sessionStorage.ts as a base to make your own cache that removes values at a condition you decide

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lpkobamn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants