Function
writeExpireAt
(expire time.Time, bkt *bolt.Bucket)
Source from the content-addressed store, hash-verified
| 833 | } |
| 834 | |
| 835 | func writeExpireAt(expire time.Time, bkt *bolt.Bucket) error { |
| 836 | expireAt, err := expire.MarshalBinary() |
| 837 | if err != nil { |
| 838 | return err |
| 839 | } |
| 840 | return bkt.Put(bucketKeyExpireAt, expireAt) |
| 841 | } |
| 842 | |
| 843 | // garbageCollect removes all contents that are no longer used. |
| 844 | func (cs *contentStore) garbageCollect(ctx context.Context) (d time.Duration, err error) { |
Used in the wild real call sites across dependent graphs
searching dependent graphs…