Module

Cache

Package
purescript-workers
Repository
truqu/purescript-workers

#CACHE Source

data CACHE :: Effect

#Cache Source

data Cache :: Type

#CacheStorage Source

#CacheQueryOptions Source

type CacheQueryOptions = { ignoreMethod :: Boolean, ignoreSearch :: Boolean, ignoreVary :: Boolean }

#deleteCache Source

deleteCache :: forall e. CacheStorage -> String -> Aff (cache :: CACHE | e) Boolean

#hasCache Source

hasCache :: forall e. CacheStorage -> String -> Aff (cache :: CACHE | e) Boolean

#keysCache Source

keysCache :: forall e. CacheStorage -> Aff (cache :: CACHE | e) (Array String)

#openCache Source

openCache :: forall e. CacheStorage -> String -> Aff (cache :: CACHE | e) Cache

#add Source

add :: forall e. Cache -> RequestInfo -> Aff (cache :: CACHE | e) Unit

#addAll Source

addAll :: forall e. Cache -> Array RequestInfo -> Aff (cache :: CACHE | e) Unit

#delete Source

delete :: forall e. Cache -> RequestInfo -> Aff (cache :: CACHE | e) Boolean

#delete' Source

delete' :: forall e. Cache -> RequestInfo -> CacheQueryOptions -> Aff (cache :: CACHE | e) Boolean

#keys Source

keys :: forall e. Cache -> Aff (cache :: CACHE | e) (Array RequestInfo)

#keys' Source

keys' :: forall e. Cache -> Maybe RequestInfo -> CacheQueryOptions -> Aff (cache :: CACHE | e) (Array RequestInfo)

#match Source

match :: forall e. Cache -> RequestInfo -> Aff (cache :: CACHE | e) (Maybe Response)

#match' Source

match' :: forall e. Cache -> RequestInfo -> CacheQueryOptions -> Aff (cache :: CACHE | e) (Maybe Response)

#matchAll Source

matchAll :: forall e. Cache -> Aff (cache :: CACHE | e) (Array Response)

#matchAll' Source

matchAll' :: forall e. Cache -> Maybe RequestInfo -> CacheQueryOptions -> Aff (cache :: CACHE | e) (Array Response)

#put Source

put :: forall e. Cache -> RequestInfo -> Response -> Aff (cache :: CACHE | e) Unit