@geeeger/data
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

data

缓存工具

Usage

import { get, set, getAsync } from '@geeeger/data';

describe('test', () => {
    test('should pass', () => {
        set('x', 1);
        expect(get('x')).toEqual(1);
        expect(getAsync('x')).resolves.toEqual(1);
        expect(getAsync('y')).rejects.toThrow();
    });
});

Readme

Keywords

Package Sidebar

Install

npm i @geeeger/data

Weekly Downloads

13

Version

2.0.7

License

ISC

Unpacked Size

2.22 kB

Total Files

4

Last publish

Collaborators

  • geeeger