1.1.1 • Published 11 months ago

@boateo6/cache v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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

1.1.1

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago