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/delete/node/deleteAValue.js
vendored
8
examples/cache/delete/node/deleteAValue.js
vendored
@@ -1,12 +1,12 @@
|
||||
import * as cache from "m3o/cache";
|
||||
const { CacheService } = require("m3o/cache");
|
||||
|
||||
// Delete a value from the cache
|
||||
async function DeleteAvalue() {
|
||||
let cacheService = new cache.CacheService(process.env.MICRO_API_TOKEN);
|
||||
async function deleteAvalue() {
|
||||
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await cacheService.delete({
|
||||
key: "foo",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await DeleteAvalue();
|
||||
deleteAvalue();
|
||||
|
||||
Reference in New Issue
Block a user