Skip to content

Commit

Permalink
Document TempDir parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Pelisse committed Aug 14, 2017
1 parent 6226bdb commit 40ecb11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion diskv.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ type Options struct {
CacheSizeMax uint64 // bytes
PathPerm os.FileMode
FilePerm os.FileMode
TempDir string
// If TempDir is set, it will enable filesystem atomic writes by
// writing temporary files to that location before being moved
// to BasePath.
// Note that TempDir MUST be on the same device/partition as
// BasePath.
TempDir string

Index Index
IndexLess LessFunction
Expand Down

0 comments on commit 40ecb11

Please sign in to comment.