@hotmeshio/hotmesh 0.0.27 → 0.0.28

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ Elevate Redis from an in-memory data cache, and turn your unpredictable function
7
7
 
8
8
  It's still Redis in the background, but your functions are run as *reentrant processes* and are executed in a distributed environment, with all the benefits of a distributed system, including fault tolerance, scalability, and high availability.
9
9
 
10
- Write functions in your own preferred style, and let Redis govern their execution at its unmatched scale and performance.
10
+ Write functions in your own preferred style, and let Redis govern their execution with its unmatched performance.
11
11
 
12
12
  ## Install
13
13
  [![npm version](https://badge.fury.io/js/%40hotmeshio%2Fhotmesh.svg)](https://badge.fury.io/js/%40hotmeshio%2Fhotmesh)
@@ -99,10 +99,12 @@ Redis governance delivers more than just reliability. Externalizing state fundam
99
99
  - `random` | Generate a deterministic random number that can be used in a reentrant process workflow (replaces `Math.random()`).
100
100
  - `executeChild` | Call another durable function and await the response. *Design sophisticated, multi-process solutions by leveraging this command.*
101
101
  - `startChild` | Call another durable function, but do not await the response.
102
- - `set` | Set a value (e.g, `set('name', 'value')`)
103
- - `get` | Get a value (e.g, `get('name')`)
102
+ - `set` | Set one or more name/value pairs (e.g, `set('name1', 'value1', 'name1', 'value2')`)
103
+ - `get` | Get a single value by name(e.g, `get('name')`)
104
+ - `mget` | Get multiple values by name (e.g, `get('name1', 'name2')`)
105
+ - `del` | Delete one or more entries by name and return the number deleted (e.g, `del('name1', 'name1')`)
104
106
  - `incr` | Increment (or decrement) a number (e.g, `incr('name', -99)`)
105
- - `mult` | Multiply (or divide) a number (e.g, `mult('name', 12)`)
107
+ - `mult` | Multiply a number (e.g, `mult('name', 12)`)
106
108
 
107
109
  Refer to the [hotmeshio/samples-typescript](https://github.com/hotmeshio/samples-typescript) repo for usage examples.
108
110
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -32,7 +32,7 @@ class MeshOSService {
32
32
  */
33
33
  static mintGuid() {
34
34
  const my = new this();
35
- return `${my.search?.prefix?.[0]}${(0, nanoid_1.nanoid)()}}`;
35
+ return `${my.search?.prefix?.[0]}${(0, nanoid_1.nanoid)()}`;
36
36
  }
37
37
  /**
38
38
  * Creates an FT search index
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -118,7 +118,7 @@ export class MeshOSService {
118
118
  */
119
119
  static mintGuid(): string {
120
120
  const my = new this();
121
- return `${my.search?.prefix?.[0]}${nanoid()}}`;
121
+ return `${my.search?.prefix?.[0]}${nanoid()}`;
122
122
  }
123
123
 
124
124
  /**