Memcached delete 命令

delete 删除指定 key。

Beginner
Key Pointsdelete 成功返回 DELETED,不存在返回 NOT_FOUND。

用法

Shell
set k 0 0 1
1
delete k
delete k
Output
STORED
DELETED
NOT_FOUND
Usually don't delete manually — let TTL expire it. Only delete explicitly when you must invalidate immediately (e.g. after a data update), and delete all related keys together or you'll read stale values.

Friends & Partners