@allbin/user-cache
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

@allbin/user-cache

Example:

import UserCache from "@allbin/user-cache";

const cache = UserCache({
  auth0: {
    domain: "...",
    client_id: "...",
    client_secret: "...",
  },
  redis: {
    url: "redis://localhost",
  },
  ttl: 60 * 15,
});

const users = await cache.getUsers(["auth0|xxx...", "auth0|yyy..."]);

await cache.disconnect();

Readme

Keywords

none

Package Sidebar

Install

npm i @allbin/user-cache

Weekly Downloads

1

Version

0.0.5

License

UNLICENSED

Unpacked Size

23.5 kB

Total Files

6

Last publish

Collaborators

  • noahhakansson
  • mdjarv
  • pscz
  • alendri