@nwx/http-cache
A simple http cache module for Angular applications
![download-image](https://img.shields.io/npm/dm/@nwx/http-cache.svg)
How to install
npm i @nwx/http-cache |OR| yarn add @nwx/http-cache
How to use
import { AppCfg, TargetPlatform } from '@nwx/cfg';
import { LogLevels } from '@nwx/logger';
export const environment: AppCfg = {
appName: '@nwx/http-cache',
target: TargetPlatform.web,
production: false,
log: {
level: LogLevels.debug
},
http-cache: {
ttl: 60,
}
};
import { CfgModule } from '@nwx/cfg';
import { LoggerModule } from '@nwx/logger';
import { http-cacheModule } from '@nwx/http-cache';
import { environment } from '../environments/environment';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
CfgModule.forRoot(environment),
LoggerModule,
HttpCacheModule
],
bootstrap: [AppComponent]
})
export class AppModule {}
Running the tests
To run the tests against the current environment:
npm run ci:all
License
Released under a (MIT) license.
Version
X.Y.Z Version
`MAJOR` version -- making incompatible API changes
`MINOR` version -- adding functionality in a backwards-compatible manner
`PATCH` version -- making backwards-compatible bug fixes
Surge