# react-native-clcasher

> clcasher

Latest version **1.0.0** (published 2017-07-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-clcasher
pnpm add react-native-clcasher
yarn add react-native-clcasher
bun add react-native-clcasher
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-19 |
| First published | 2017-07-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Clcorp |
| Maintainers | admin_clcorp |
| Keywords | Cacher |

## Links

- npm: https://www.npmjs.com/package/react-native-clcasher
- Repository: https://bitbucket.org/clcorpdevelopment/react-native-casher
- Homepage: https://bitbucket.org/clcorpdevelopment/react-native-casher#readme
- npm.io page: https://npm.io/package/react-native-clcasher

## Dependencies (1)

- [mock-async-storage](https://npm.io/package/mock-async-storage.md) ^1.0.3

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-07-19
- 0.0.1 — 2017-07-05

## README

# MemoryCache

Extended AsyncStorage with expiration check

AsyncStorage can only save data forever. If you want save data for some period of time and clean outdated data - 
use following API:

- `set(key: string, value?: mixed, expires?: seconds)` - Stores data by key and expiration time in seconds
- `get(key: string)` - Returns stored data by key
- `remove(key: string)` - Clear data by key
- `multiGet(keys: array)` - Get data by keys
- `multiSet(values: object, expires?: seconds)` - Store multiple data with expiration time in seconds 
- `multiRemove(keys: array)` - Clears storage by specified keys
- `flush()` - Clear storage
- `isExpired(key: string)` - Checks of data expiration 
- `getAllKeys()` - Returns all stored keys
- `getAllValues()` - Returns all stored serialized values

## Installation

```
npm install --save react-native-clcasher
```

## Usage

```
const MemoryCache = require('react-native-clcasher/MemoryCache').default;

MemoryCache.set(url, headers, maxAge)
```

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