@biscuitland/cache
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

@biscuitland/cache

Most importantly, biscuit's cache is:

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

biscuit

Install (for node18)

npm install @biscuitland/cache

Example (Basic)

import { Cache, MemoryCacheAdapter } from '@biscuitland/cache';

const bootstrap = async () => {
	const cache = new Cache({
		adapter: new MemoryCacheAdapter(),
	});

    // You can listen to the raw biscuit event

    cache.start(<payloads>);
};

bootstrap();

Links

Package Sidebar

Install

npm i @biscuitland/cache

Weekly Downloads

1

Version

2.3.0

License

Apache-2.0

Unpacked Size

90.5 kB

Total Files

5

Last publish

Collaborators

  • drylozu
  • socram03
  • miia