mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +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); |