Skip to content

Commit

Permalink
updated version number in README
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsny committed May 6, 2021
1 parent c291b55 commit b5a2d1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To get started with SpeedStore all you need to do is add the library to your App
{
"userSymbol": "SpeedStore",
"libraryId": "1t1E-r2T5Na3MwsE3DxRqV_2A9U5YWLXEPowWqc-dAUcoNJD0YaRgVs3D",
"version": "4"
"version": "6",
}
]
},
Expand Down
6 changes: 5 additions & 1 deletion src/SpeedStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SpeedStore_ {
get(key: string) {
// Get's the value for a given key - Need to check if the key exists

if (!this.memcache) { // Trialing to always fetch from store
if (!this.memcache) {
this.retrieveAll();
}
if (key in this.memcache) {
Expand Down Expand Up @@ -93,6 +93,10 @@ class SpeedStore_ {
}

setMany(properties: { [key: string]: any }) {
if (!this.memcache) {
this.retrieveAll()
}

for (const key in properties) {
this.memcache[key] = properties[key];
}
Expand Down

0 comments on commit b5a2d1f

Please sign in to comment.