Skip to content

[BUG] CacheEvict注解带有value属性时无法清除缓存 #7681

@yxsr-zxx

Description

@yxsr-zxx

#[CacheEvict(prefix: "admin",value: "_#{id}")]
这种写法放在方法上面,请求方法时缓存并没有被清除
#[CacheEvict(prefix: "admin")]
去除掉value属性后缓存成功清除

php版本:8.1.32
hyperf版本:3.0
swoole版本:5.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions