mirror of
https://github.com/pgsty/silo.git
synced 2026-09-21 18:13:40 +00:00
f8a16dd22b
- To avoid race in expiration while accessing memory driver structs with in two competing write locks. Use lru Len() instead to know exact length to schedule for eviction. - squash both bucket and object structs, instead use a separate map to keep mutable info of lastAccessTime which can be independently used inside the expiration routine.