mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
16 lines
338 B
TypeScript
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); |