Module

Paxl.RequestStore

Package
purescript-paxl
Repository
jqyu/purescript-paxl

#Result Source

data Result a

Constructors

Instances

#BlockedFetch Source

newtype BlockedFetch req a

Constructors

Instances

#RequestStore Source

newtype RequestStore req a

#Key Source

newtype Key

Constructors

#CacheResult Source

#Cacheable Source

class Cacheable req  where

Members

#new Source

new :: forall a eff req. Eff (GenPaxlEffects req eff) (RequestStore req a)

#peek Source

peek :: forall a eff req. RequestStore req a -> Key -> Eff (GenPaxlEffects req eff) (CacheResult a)

#poke Source

poke :: forall a eff req. RequestStore req a -> Key -> BlockedFetch req a -> Eff (GenPaxlEffects req eff) Unit

#delete Source

delete :: forall a eff req. RequestStore req a -> Key -> Eff (GenPaxlEffects req eff) Unit

#prefixKey Source

prefixKey :: forall sym. IsSymbol sym => SProxy sym -> Key -> Key