Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您将密钥设置为过期时memcached,它实际上是在过期时被删除,还是在请求密钥(get)并且过期已过期时被删除。换句话说,过期会自动从 memcached 中删除值,还是简单地将其标记为过期?
memcached
get
谢谢。
过期是懒惰的。如果您对过期的密钥执行获取操作,则会将其删除。否则,它会被标记,当您的缓存空间不足时,它将被删除,以便为新项目腾出空间。