@geeeger/data
v2.0.7
Published
缓存工具
Downloads
1
Readme
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();
});
});