# angular-cache-rf

> angular cache is a library that help to cache data on client. the purpose is to reduced request count to api from angular application

Latest version **0.0.8** (published 2019-07-24) · 0 weekly downloads

## Install

```sh
npm install angular-cache-rf
pnpm add angular-cache-rf
yarn add angular-cache-rf
bun add angular-cache-rf
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2019-07-24 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 114 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ripas.filqadar |

## Links

- npm: https://www.npmjs.com/package/angular-cache-rf
- Repository: https://github.com/ripasfilqadar/Angular-Libraries/tree/master/projects/angular-cache
- npm.io page: https://npm.io/package/angular-cache-rf

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.8 (latest) — 2019-07-24
- 0.0.7 — 2019-07-22
- 0.0.6 — 2019-07-22
- 0.0.5 — 2019-07-18
- 0.0.4 — 2019-07-18
- 0.0.3 — 2019-07-18
- 0.0.2 — 2019-07-18
- 0.0.1 — 2019-07-18

## README

# Angular Cache

angular cache is a library that help to cache data on client. the purpose is to reduced request count to api from angular application

## How To Install

    npm i angular-cache-rf

### How to Use

use `AngularCacheService` for using this library.

    export class SampleService{
      constructor(private angularCacheService: AngularCacheService){
    }

    cacheThisData(){
    this.angularCacheService.GetCache(Observable, key)
    }

`GetCache` will return data as observable. It has some options

*   ExpiresDate: time to expired
*   Location: place to save cache (localstorage or session storage

#### Expires Date

you can use `DateExtension` class to help you for set value for this option. `DateExtension`have some method

*   AddMinutes
*   Addsecond
*   AddHour
*   AddDay

#### Location

use `AngularCacheSessionType` to choose cache location

---
_Source: https://npm.io/package/angular-cache-rf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
