diskCache
dfhdl.app.DFApp.diskCache
object diskCache extends DiskCache
Attributes
- Graph
-
- Supertypes
-
class DiskCacheclass Objecttrait Matchableclass Any
- Self type
-
diskCache.type
Members list
Type members
Inherited and Abstract classlikes
A Step represents a cacheable computation step in a processing pipeline.
A Step represents a cacheable computation step in a processing pipeline.
Each Step takes an input of type F, produces an output of type R, and caches the result based on a provided key. Steps can be chained together to form a pipeline where each step's output becomes the input to the next step.
Type parameters
- F
-
The input type for this step
- R
-
The output type for this step
Value parameters
- otherDeps
-
Additional dependencies for this step. These are used to determine if the cached result is still valid. To implement a Step, you must define:
run
: The actual computation that transforms F to RvalueToCacheStr
: How to serialize the result to a string for cachingcacheStrToValue
: How to deserialize the cached string back to the result type Optionally, you can override:logCachedRun
: Custom logging when a cached result is usedname
: The name used for cache files (defaults to the class name)
- prevStepOrValue
-
Either a previous Step that produces this step's input, or a function that provides the input
Attributes
- Inherited from:
- DiskCache
- Supertypes
-
trait HasTypeNameclass Objecttrait Matchableclass Any
- Known subtypes
Value members
Inherited methods
Attributes
- Inherited from:
- DiskCache
Attributes
- Inherited from:
- DiskCache
Attributes
- Inherited from:
- DiskCache
Attributes
- Inherited from:
- DiskCache
Inherited fields
Attributes
- Inherited from:
- DiskCache
Attributes
- Inherited from:
- DiskCache
In this article