nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
731 stars 239 forks source link

help!!!! #74

Open hzm199822 opened 3 years ago

hzm199822 commented 3 years ago

When I use lpush to add UUID string to redis, it will automatically become UUID in redis and key does not exist

图片 图片
dlannan-fmad commented 3 years ago

In lua that key will faill in a string. The minus ("-") symbol is a reserved character for patterns. For this to work correctly you need to use: 9076afc1%-4559%-4ac2%-8171%-7ecadb240ca2 You should use a string parser if you need to check for this in lua. http://lua-users.org/wiki/StringLibraryTutorial

soroshsabz commented 2 years ago

ITNOA

@hzm199822 if your issue is resolved, please close this issue