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 req eff a. Eff (GenPaxlEffects req eff) (RequestStore req a)

#peek Source

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

#poke Source

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

#delete Source

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

#prefixKey Source

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