@boateo6/cache
v1.1.1
Published
Store Temp Data
Readme
WELCOME
How to use
Code to save data
const cache = require("@boateo6/cache")
var temp_data = new cache("hello world")
console.log(temp_data.data)Console Output
hello worldCode to update data
const cache = require("@boateo6/cache")
var temp_data = new cache("hello world")
console.log(temp_data.data)
temp_data.update("Hello!!!")
console.log(temp_data.data)Console Output
hello world
Hello!!!Code to delete/forget data
const cache = require("@boateo6/cache")
var temp_data = new cache("hello world")
temp_data.forget()
console.log(temp_data.data)Console Output (Before Forgetting)
hello worldConsole Output (After Forgetting)
null