Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
unConstModule :: ConstModule r a -> rboltzmann-samplers Boltzmann.Species No documentation available.
copyCacheSTM :: Cache k v -> STM (Cache k v)cache Data.Cache No documentation available.
deleteSTM :: (Eq k, Hashable k) => k -> Cache k v -> STM ()cache Data.Cache STM variant of delete.
insertSTM :: (Eq k, Hashable k) => k -> v -> Cache k v -> Maybe TimeSpec -> STM ()cache Data.Cache Insert an item in the cache, with an explicit expiration value, in the STM monad. If the expiration value is Nothing, the item will never expire. The default expiration value of the cache is ignored. The expiration value is the absolute Monotonic time the item expires. You should manually construct the absolute Monotonic time, as opposed to the behaviour of insert'. E.g.
action :: Cache -> IO () action c = do t <- getTime Monotonic let t' = t + (defaultExpiration c) atomically $ insertSTM 0 0 c (Just t')
keysSTM :: Cache k v -> STM [k]cache Data.Cache STM variant of keys.
lookupSTM :: (Eq k, Hashable k) => Bool -> k -> Cache k v -> TimeSpec -> STM (Maybe v)cache Data.Cache Lookup an item with a given key in the STM monad, given the current Monotonic time. STM variant of lookup and lookup'
newCacheSTM :: Maybe TimeSpec -> STM (Cache k v)cache Data.Cache STM variant of newCache
purgeExpiredSTM :: (Eq k, Hashable k) => Cache k v -> TimeSpec -> STM ()cache Data.Cache STM variant of purgeExpired. The TimeSpec argument should be the current Monotonic time, i.e. getTime Monotonic.
sizeSTM :: Cache k v -> STM Intcache Data.Cache STM variant of size
-
cache Data.Cache.Internal Get the current time in the STM monad using unsafeIOToSTM.