1.0.1 • Published 6 years ago

lonly-cachejs v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

CacheJs

Build Status

Store arbitrary data associated with the es6 weekman and/or return the value that was set.

Instructions

中文文档

1. Install from Npm

npm install lonly-cachejs

2. Import from node_modules

import { CacheJS } from 'lonly-cashjs'

3. Store or get data

Add Data

let tester = {}
CacheJS.addData(tester, 'name', 'lonly') // return Map

Get Data

CacheJS.getData(tester, 'name') // return String

API List

CacheJS
|
|__addData(owner, name, data)
|
|__getData(owner, name)
|
|__removeData(owner, name)
|
|__clearData