@boateo6/cache
1.1.1 • Public • Published 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 world
Code 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 world
Console Output (After Forgetting)
null
Dependencies (2)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads