From 9781c2fa28a09f6e39165ee6dc8845424337892d Mon Sep 17 00:00:00 2001 From: Muah Date: Mon, 23 Apr 2018 08:11:32 +0200 Subject: [PATCH] correct expire example date calc according to https://github.com/RobinCK/vue-ls/blob/6f05098bdbc9b0cede4f23f6cfd5514a8dcd6edf/dist/vue-ls.js#L181 the expire should be in seconds in not in milli --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a4848d..ef4bb9c 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ new Vue({ mounted: function() { Vue.ls.set('foo', 'boo'); //Set expire for item - Vue.ls.set('foo', 'boo', 60 * 60 * 1000); //expiry 1 hour + Vue.ls.set('foo', 'boo', 60 * 60); //expiry 1 hour Vue.ls.get('foo'); Vue.ls.get('boo', 10); //if not set boo returned default 10