mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Change build setup of JS clients, reintroduce beta publishing after losing it due to unmerged code (#238)
This commit is contained in:
8
examples/cache/set/node/setAValue.js
vendored
8
examples/cache/set/node/setAValue.js
vendored
@@ -1,8 +1,8 @@
|
||||
import * as cache from "m3o/cache";
|
||||
const { CacheService } = require("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);
|
||||
async function setAvalue() {
|
||||
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await cacheService.set({
|
||||
key: "foo",
|
||||
value: "bar",
|
||||
@@ -10,4 +10,4 @@ async function SetAvalue() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await SetAvalue();
|
||||
setAvalue();
|
||||
|
||||
Reference in New Issue
Block a user