Skip to content

Redis 订阅模式对我来说没法使用 #56

@lizesi

Description

@lizesi

你们的原理是使用下面方法进行订阅
image

但是我使用RMapCache,会出现 \x00 的错误
image
#1 使用 StringRedisTemplate 保存数据,可用
#2 使用 RMapCache 保存数据, 出现\x00, 不可用,不要纠结我用的不是 StringCodec

查了下源码
RedissonClient 执行 lua 脚本就乱了
image

eval "return struct.pack('dLc0', 0, string.len(ARGV[1]), ARGV[1])" 0 "test"
image

我直接询问了 redisson
redisson/redisson#5642
要我直接使用 RMap

这个具体是怎么选?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions