https://github.com/pod-point/cache-js
A cache service for JS applications.
https://github.com/pod-point/cache-js
software-team
Last synced: 10 months ago
JSON representation
A cache service for JS applications.
- Host: GitHub
- URL: https://github.com/pod-point/cache-js
- Owner: Pod-Point
- License: mit
- Created: 2019-12-30T10:55:21.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T10:16:00.000Z (over 4 years ago)
- Last Synced: 2025-08-08T19:55:12.985Z (11 months ago)
- Topics: software-team
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cache JS

A cache service for JS.
## Usage
To install this package, run the following command:
```bash
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:
```bash
npm install
```
### Testing
This package uses jest. To run the test suites for this project, run the following command:
```bash
npm run test
```
## License
The MIT License (MIT). Please see [License File](LICENCE) for more information.
---

Travel shouldn't damage the earth 🌍
Made with ❤️ at [Pod Point](https://pod-point.com)