mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
13 lines
278 B
JavaScript
Executable File
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();
|