mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
13 lines
282 B
TypeScript
13 lines
282 B
TypeScript
|
|
|
|
// Copied examples directly from lscache github site with slight modifications
|
|
|
|
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); |