Files
DefinitelyTyped/types/lscache/lscache-tests.ts
2017-03-24 14:27:52 -07:00

16 lines
338 B
TypeScript

// Copied examples directly from lscache github site with slight modifications
alert(lscache.supported());
lscache.enableWarnings(true);
lscache.set('greeting', 'Hello World!', 2);
alert(lscache.get('greeting'));
lscache.remove('greeting');
lscache.set('data', { 'name': 'Pamela', 'age': 26 }, 2);
alert(lscache.get('data').name);