Skip to content

[BUG] memory cache有并发问题 #888

Closed

Description

@muzimu

描述

memory的cache实现中Get 和 IsExist 读操作没有加锁,且存在死锁风险(deleteKey 内部加锁,但调用方可能已持锁)。可用 sync.RWMutex 替换 sync.Mutex 修复并发读写问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions