有没有可能在redis中对密钥类型进行分类?
Is there any possibility classify type of key in redis?
我有一个问题,如果redis 正在对键类型进行分类。例如,SET 123 1
和 SET 123abc 1
是绝对不同的键。但是我想知道key的类型是不是不一样,123
是整数类型,123abc
是字符串类型。我猜,redis-driver库有什么问题,例如node-redis。我按javascript的123
字符串类型删除key,但这可能没有完成,因为它们是不同的类型,redis中的整数类型和node.js中的字符串类型。
这是个烂主意吗?我有一些问题提出了这个想法。请让我知道事实。谢谢。
键名始终是字符串。
I delete key by 123 string type of javascript, but this may be not completed, because they are different types, integer type in redis and string type in node.js.
不,这不是发生的事情。错误在您的代码中的其他地方。
我有一个问题,如果redis 正在对键类型进行分类。例如,SET 123 1
和 SET 123abc 1
是绝对不同的键。但是我想知道key的类型是不是不一样,123
是整数类型,123abc
是字符串类型。我猜,redis-driver库有什么问题,例如node-redis。我按javascript的123
字符串类型删除key,但这可能没有完成,因为它们是不同的类型,redis中的整数类型和node.js中的字符串类型。
这是个烂主意吗?我有一些问题提出了这个想法。请让我知道事实。谢谢。
键名始终是字符串。
I delete key by 123 string type of javascript, but this may be not completed, because they are different types, integer type in redis and string type in node.js.
不,这不是发生的事情。错误在您的代码中的其他地方。