Skip to content

getdel is not a function #46

@m-i-c-h-a-l

Description

@m-i-c-h-a-l

I followed redis setup on https://docs.adonisjs.com/guides/redis. I can get and set data from redis, but I'm not able to use getdel:

const value= await Redis.get('key'); // works

const value= await Redis.getdel('key'); // error

Error:
Redis_1.default.getdel is not a function

The getdel is offered by IDE autocomplete and also has a definition in RedisCommander.ts (ioredis):

/**
  * Get the value of a key and delete the key
  * - _group_: string
  * - _complexity_: O(1)
  * - _since_: 6.2.0
  */
 getdel(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;

Metadata

Metadata

Assignees

Labels

Type: BugThe issue has indentified a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions