Redis 缓存中的密钥不可用

Key not available in Redis cache

如果传递给 StackExchange.Redis KeyDelete 方法的键在 redis 缓存中不可用,会发生什么情况。它会抛出任何异常还是在内部处理丢失的密钥而不抛出任何异常?

long KeyDelete(RedisKey[] keys, CommandFlags flags = CommandFlags.None);

如果您在 KeyDelete 上按 F12 查看定义,它会告诉您 "A key is ignored if it does not exist"

// Summary:
//     Removes the specified keys. A key is ignored if it does not exist.
//
// Returns:
//     The number of keys that were removed.
//
// Remarks:
//     http://redis.io/commands/del
long KeyDelete(RedisKey[] keys, CommandFlags flags = CommandFlags.None);