GETDEL

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Get and delete the value

GETDEL gets the value and then deletes it.

Example

Command>getdel key
Result>value
Command>get key
Result>(nil)


Syntax

GETDEL key

  • Available since version 6.2.0.
  • Time complexity is O(1).
Related commands GET

<< GETEX GETDEL INCR >>








Email 답글이 올라오면 이메일로 알려드리겠습니다.