1.3.3 • Published 2 years ago

@use-services/ioredis v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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")