mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
14 lines
330 B
JavaScript
Executable File
14 lines
330 B
JavaScript
Executable File
const { CacheService } = require("m3o/cache");
|
|
|
|
// Set an item in the cache. Overwrites any existing value already set.
|
|
async function setAvalue() {
|
|
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await cacheService.set({
|
|
key: "foo",
|
|
value: "bar",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
setAvalue();
|