Skip to content

Commit

Permalink
add mmap option to cache function
Browse files Browse the repository at this point in the history
  • Loading branch information
meggart committed Nov 7, 2024
1 parent 6a4453c commit 9a37dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cached.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ Wrap internal disk arrays with `CacheDiskArray`.
This function is intended to be extended by package that want to
re-wrap the disk array afterwards, such as YAXArrays.jl or Rasters.jl.
"""
cache(A::AbstractArray; maxsize=1000) = CachedDiskArray(A; maxsize)
cache(A::AbstractArray; maxsize=1000, mmap=false) = CachedDiskArray(A; maxsize, mmap)

0 comments on commit 9a37dc7

Please sign in to comment.