lockr
lockr copied to clipboard
Shouldn't flush() remove only prefixed keys?
getAll() returns only the prefixed keys, shouldn't flush() remove only those as well?
Would it be useful to have both behaviours?
perhaps ignorePrefix (boolean) argument could be added both to getAll() and flush(). Or perhaps options with noPrefix field.
@eavgerinos what do you think?
@Knagis @tsironis You are right. flush should, by default, purge only lockr keys.
@Knagis @eavgerinos Take a look at this one guys.
Completely agreed. If I want to delete all the local storage I'd rather do localStorage.clear(); (rather than using a wrapped method that just does that).