0.0.5 • Published 2 years ago

@potoland/cache v0.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@potoland/cache

Most importantly, potoland's cache is:

A resource control cache layer, based on carriers and resource-intensive policies

Install (for node18)

npm install @potoland/cache

Example (Basic)

import { Cache, RedisAdapter } from '@potoland/cache';
import Redis from 'ioredis';

const bootstrap = async () => {
	const cache = new Cache(new RedisAdapter({ client: new Redis() }));

	// You can listen to the raw potocuit event

	await cache.onPacket(<Shard>, <payloads>);
};

bootstrap();
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago