2.2.1 • Published 5 years ago

unity-cache v2.2.1

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

Unity Cache

Travis-CI Coverage Status npm version Scrutinizer Deps Deps-Dev Dependency Status

Cache abstraction around Dexie.js.

Table of Contents

Installation

npm i --save unity-cache

API

createCache(stores, name, version);

Returns: {Object}

Use module's default export to create an API object.

Return asynchronous cache methods: get, set, remove, drop.

stores {Array}

Database stores (tables).

name {String} Optional

Default: unity

Database name.

version {Number|String} Optional

Default: 1

Database version. The old database with the same name will be deleted.

Usage

You can call methods like so: cache[method](store, key, value)

All methods are asynchronous.

Contributing

  • Provide conventional commit messages by using npm run commit instead of git commit.
  • Core contributors: use GitHub's Rebase and merge as a default way of merging PRs.

License

MIT © AuRu

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago