Something went wrong. Try again.
Dagger 1.0.0 beta SDK experiments
dagger purescript gleam clojure
Something went wrong. Try again.
2.9 kB · 87 lines
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788-- Generated by scripts/generate.mjs. Do not edit.module Dagger.EngineCache ( entrySet , entrySetWith , EntrySetOpts , defaultEntrySetOpts , id , maxUsedSpace , minFreeSpace , prune , pruneWith , PruneOpts , defaultPruneOpts , reservedSpace , targetSpace ) where
import Data.Maybe (Maybe(..))import Effect.Aff (Aff)import Dagger.Internal.Runtime as Rimport Dagger.Types as T
type EntrySetOpts = { key :: Maybe String }
defaultEntrySetOpts :: EntrySetOptsdefaultEntrySetOpts = { key: Nothing }
-- | The current set of entries in the cacheentrySet :: T.EngineCache -> T.EngineCacheEntrySetentrySet = entrySetWith defaultEntrySetOpts
-- | The current set of entries in the cacheentrySetWith :: EntrySetOpts -> T.EngineCache -> T.EngineCacheEntrySetentrySetWith opts = R.select "entrySet" [R.optional (R.argument "key" "String") opts.key]
-- | A unique identifier for this EngineCache.id :: T.EngineCache -> Aff T.IDid = R.scalar "id" []
-- | The maximum bytes to keep in the cache without pruning.maxUsedSpace :: T.EngineCache -> Aff IntmaxUsedSpace = R.scalar "maxUsedSpace" []
-- | The target amount of free disk space the garbage collector will attempt to leave.minFreeSpace :: T.EngineCache -> Aff IntminFreeSpace = R.scalar "minFreeSpace" []
type PruneOpts = { useDefaultPolicy :: Maybe Boolean , maxUsedSpace :: Maybe String , reservedSpace :: Maybe String , minFreeSpace :: Maybe String , targetSpace :: Maybe String , maxEstimatedBytes :: Maybe Int , targetEstimatedBytes :: Maybe Int }
defaultPruneOpts :: PruneOptsdefaultPruneOpts = { useDefaultPolicy: Nothing , maxUsedSpace: Nothing , reservedSpace: Nothing , minFreeSpace: Nothing , targetSpace: Nothing , maxEstimatedBytes: Nothing , targetEstimatedBytes: Nothing }
-- | Prune the cache of releaseable entriesprune :: T.EngineCache -> Aff (Maybe T.Void)prune = pruneWith defaultPruneOpts
-- | Prune the cache of releaseable entriespruneWith :: PruneOpts -> T.EngineCache -> Aff (Maybe T.Void)pruneWith opts = R.scalar "prune" [R.optional (R.argument "useDefaultPolicy" "Boolean") opts.useDefaultPolicy, R.optional (R.argument "maxUsedSpace" "String") opts.maxUsedSpace, R.optional (R.argument "reservedSpace" "String") opts.reservedSpace, R.optional (R.argument "minFreeSpace" "String") opts.minFreeSpace, R.optional (R.argument "targetSpace" "String") opts.targetSpace, R.optional (R.argument "maxEstimatedBytes" "Int") opts.maxEstimatedBytes, R.optional (R.argument "targetEstimatedBytes" "Int") opts.targetEstimatedBytes]
-- | The minimum amount of disk space this policy is guaranteed to retain.reservedSpace :: T.EngineCache -> Aff IntreservedSpace = R.scalar "reservedSpace" []
-- | The target number of bytes to keep when pruning.targetSpace :: T.EngineCache -> Aff InttargetSpace = R.scalar "targetSpace" []