1.0.9 • Published 7 years ago

kiss-cache v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago