npm

@use-services/ioredis
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Redis

// in services.ts
import * as IORedis from "@use-services/ioredis";

const options = {
  redis: {
    init: IORedis.init,
    args: {
      host: "0.0.0.0",
      password: "pass",
    },
    ctor: Redis,
  } as IORedis.Option<IORedis.Service>,
};

// usage
await srvs.redis.del("key")

Readme

Keywords

Package Sidebar

Install

npm i @use-services/ioredis

Weekly Downloads

1

Version

1.3.3

License

MIT

Unpacked Size

2.91 kB

Total Files

4

Last publish

Collaborators

  • sigoden