Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 324 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 324 Bytes

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();
    });
});