You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Support request => <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
Current behavior
Method clear() of LocalStorageCacheService deletes all objects from the browser's local storage.
Expected/desired behavior
Should only delete objects from the browser's local storage, which are also in the CACHE.
Minimal reproduction of the problem with instructions
Not needed.
What is the motivation / use case for changing the behavior?
I want to be able to delete all object in the cache at once, instead of removing them one by one using the method remove(key: string | number, wild = false).
Environment
Angular version: 5.x
Browser:
N/A
For Tooling issues:
N/A
The text was updated successfully, but these errors were encountered:
fulls1z3
changed the title
Method clear() of LocalStorageCacheService also deletes objects, which are not in the CACHE
clear method deletes every object in storage
Dec 24, 2018
I'm submitting a ...
Current behavior
Method clear() of LocalStorageCacheService deletes all objects from the browser's local storage.
Expected/desired behavior
Should only delete objects from the browser's local storage, which are also in the CACHE.
Minimal reproduction of the problem with instructions
Not needed.
What is the motivation / use case for changing the behavior?
I want to be able to delete all object in the cache at once, instead of removing them one by one using the method remove(key: string | number, wild = false).
Environment
Angular version: 5.x
Browser:
N/A
For Tooling issues:
N/A
The text was updated successfully, but these errors were encountered: