@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

Readme

Keywords

Package Sidebar

Install

npm i @boateo6/cache

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

1.45 kB

Total Files

3

Last publish

Collaborators

  • boateo6