Files
services/examples/cache/get/node/getAValue.js
2021-09-16 12:52:36 +01:00

13 lines
278 B
JavaScript
Executable File

import * as cache from "m3o/cache";
// Get an item from the cache by key
async function GetAvalue() {
let cacheService = new cache.CacheService(process.env.MICRO_API_TOKEN);
let rsp = await cacheService.get({
key: "foo",
});
console.log(rsp);
}
await GetAvalue();