ti2 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cache.js +11 -0
  2. package/package.json +1 -1
package/cache.js CHANGED
@@ -55,8 +55,19 @@ const getOrExec = async ({
55
55
  return value;
56
56
  };
57
57
 
58
+ const drop = async ({
59
+ pluginName,
60
+ fn,
61
+ fnParams,
62
+ }) => {
63
+ let key = hash({ fn, fnParams });
64
+ key = `${pluginName}:${key}`;
65
+ await cache.del(key);
66
+ };
67
+
58
68
  module.exports = {
59
69
  cache,
60
70
  save,
61
71
  getOrExec,
72
+ drop,
62
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {