peterbourgon / diskv

A disk-backed key-value store.
http://godoc.org/github.com/peterbourgon/diskv
MIT License
1.41k stars 102 forks source link

can we append files by DiskV #77

Closed pegasas closed 1 year ago

pegasas commented 1 year ago

I have a request to persist buffer into local using diskv. I wants to add a AppendStream method into https://github.com/peterbourgon/diskv/blob/master/diskv.go#L175

Why can't we add such a method before? Is there any thinking?

peterbourgon commented 1 year ago

diskv so far doesn't treat values as "appendable", and while I guess it could be possible to write an AppendStream method, I don't think it's needed to solve the (linked, Kubernetes) problem that you're apparently trying to solve.