1.0.4 • Published 4 years ago

@pod-point/cache-js v1.0.4

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

Cache JS

Build Status

A cache service for JS.

Usage

To install this package, run the following command:

npm install @pod-point/cache-js

Once installed, simply create a new instance of the Cache service and begin using it e.g.

import { Redis } from '@pod-point/cache-js';

const cacheService = new Redis();

await cacheService.put('foo', 'bar');

There are only 3 simple methods a cache service can carry out, and these are put, get and remove, all fairly self-explanatory!

When putting key/value pairs into the cache you can also set an expiry date, or a time in seconds until it should expire.

Development

Installation

To install this packages dependencies, run the following command:

npm install

Testing

This package uses jest. To run the test suites for this project, run the following command:

npm run test

License

The MIT License (MIT). Please see License File for more information.


Travel shouldn't damage the earth 🌍

Made with ❤️  at Pod Point

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1-4-6

5 years ago

1.0.1-4-5

5 years ago

1.0.1-4-4

5 years ago

1.0.1-4-3

5 years ago

1.0.1-4-2

5 years ago

1.0.1-4

5 years ago

1.0.1-4-1

5 years ago

1.0.1-3-test

5 years ago

1.0.1-3

6 years ago

1.0.1-2

6 years ago