Remove all saved searches for a given storage key.
Retrieve all saved searches for the given storage key.
Returns an empty array when nothing is stored or when the stored value cannot be parsed.
Remove a saved search by its id.
No-op if the id does not exist.
Persist a new ordering of saved searches.
Accepts an array of IDs in the desired order. Searches whose IDs are not in the list are dropped.
Persist a saved search. If a search with the same id already
exists it is replaced; otherwise the new search is appended.
Manages persisted saved searches through the application-wide StorageService (which defaults to
localStoragevia theSTORAGE_STRATEGYinjection token).Searches are stored as a JSON array under a key derived from the caller-supplied
storageKey. Multiple independent search views can coexist by using different storage keys.Usage
Swapping the storage backend
Override the
STORAGE_STRATEGYtoken from@theredhead/lucid-foundation: