如何在Redis里按模式删除数据

2025-05-12 23:18:47
推荐回答(1个)
回答(1):

用一个可以"find reference"的IDE,沿着setex(Set the value and expiration of a key)命令一窥究竟: void setexCommand(redisClient *c) { c->argv[3] = tryObjectEncoding(c->argv[3]); setGenericCommand(c,0,c->argv[1],c->argv[3],c->argv[...