# Allior Cache

## Usage

```ts
import { AlliorCache } from "@allior/wmake-utils";

const cache = new AlliorCache<string, number>(100, 60000); // set limit to 100 keypairs and TTL to 60 seconds (optional)

cache["user:1"] = 42; // write
const value = cache["user:1"]; // read
const has = "user:1" in cache; // exists check

console.log(value); // 42
console.log(has); // true
```
