mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 16:45:10 +08:00
13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
/// <reference path="lscache.d.ts" />
|
|
|
|
// 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); |