Skip to content

分布式缓存Redis(三) #25

Description

@superstonne

Redis (三)

缓存的更新

  1. 删除缓存,再更新数据库
  2. 先更新数据库,更新成功后,让缓存失效
  3. 更新数据时候,只更新缓存,然后异步调度批量去更新数据库

缓存击穿

缓存穿透

商品信息id,info放到redis-》db

key-> “&&”

布隆过滤器

缓存击穿

key 设置 expire

互斥锁使得后续的请求进行排队

缓存失效

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions