Karasuni / common-cache-v1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Common Cache

Simple, tree-shakable, AoT, Universal and Web Worker friendly common cache service for Angular (2 and beyond). Offers MemoryStorage, LocalStorage, SessionStorage and IndexedDB services.

How to use?

$ npm i common-cache --save

Integration

Should work out of the box with webpack, respectively angular-cli. All you need to do is to include NgResizableModule:

import { CommonCache } from 'common-cache';

@NgModule({
  imports: [CommonCacheModule],
  ...
})
class AppModule {}

Angular Seed

// tools/config/project.config.ts

...
// Add packages (e.g. common-cache)
let additionalPackages: ExtendPackages[] = [{
  name: 'common-cache',
  path: 'node_modules/common-cache/common-cache.bundle.js'
}];

this.addPackagesBundles(additionalPackages);
...

Acknowledgements

This package is based on mgechv's ngresizable and module publishing guide.

License

MIT

About

License:MIT License


Languages

Language:TypeScript 63.5%Language:JavaScript 36.5%