mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
Generate clients (#206)
This commit is contained in:
13
examples/cache/increment/node/incrementAValue.js
vendored
Executable file
13
examples/cache/increment/node/incrementAValue.js
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as cache from "m3o/cache";
|
||||
|
||||
// Increment a value (if it's a number)
|
||||
async function IncrementAvalue() {
|
||||
let cacheService = new cache.CacheService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await cacheService.increment({
|
||||
key: "counter",
|
||||
value: 2,
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await IncrementAvalue();
|
||||
Reference in New Issue
Block a user