-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Type: BugThe issue has indentified a bugThe issue has indentified a bug
Description
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 bugThe issue has indentified a bug