1.0.9 • Published 6 years ago

kiss-cache v1.0.9

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

KISSCache

Usage

import Cache from 'kiss-cache';

const cache = new Cache();

const someLongExcecutableFunction = async ({hello}) => {
	// Some long calculations
	return "world";
};

const cachedLongExcecutableFunction = cache.decorate(someLongExcecutableFunction);


// Calculated
cachedLongExcecutableFunction.then(world => console.log(world));

// Use cached value
cachedLongExcecutableFunction.then(world => console.log(world));
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago