Skip to content

Commit

Permalink
document
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Feb 2, 2024
1 parent 88513af commit 069e687
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cached.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
# This is useful in `zip` and other operations that can iterate
# over multiple arrays with different patterns.

"""
CachedDiskArray <: AbstractDiskArray
CachedDiskArray(A::AbstractArray; maxsize=1000)
Wrap some disk array `A` with a caching mechanism that will
keep chunks up to a total of `maxsize` megabytes, dropping
the least used chunks when `maxsize` is exceeded.
"""
struct CachedDiskArray{T,N,A<:AbstractArray{T,N},C} <: AbstractDiskArray{T,N}
parent::A
cache::C
Expand Down

0 comments on commit 069e687

Please sign in to comment.