mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
Generate clients (#206)
This commit is contained in:
13
examples/cache/set/node/setAValue.js
vendored
Executable file
13
examples/cache/set/node/setAValue.js
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as cache from "m3o/cache";
|
||||
|
||||
// Set an item in the cache. Overwrites any existing value already set.
|
||||
async function SetAvalue() {
|
||||
let cacheService = new cache.CacheService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await cacheService.set({
|
||||
key: "foo",
|
||||
value: "bar",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await SetAvalue();
|
||||
Reference in New Issue
Block a user