lrucaching alternatives and similar packages
Based on the "Unclassified" category.
Alternatively, view lrucaching alternatives based on common mentions on social networks and blogs.
-
gotta-go-fast
A command line utility for practicing typing and measuring your WPM and accuracy. -
heroku-persistent
Parse DATABASE_URL into configuration types for Persistent -
bit-stream
Lazy infinite compact streams with cache-friendly O(1) indexing and applications for memoization -
ascii-art-to-unicode
Small program to convert ASCII box art to Unicode box drawings. -
rollbar-cli
A group of libraries written in Haskell to communicate with Rollbar API. -
hackertyper
"Hack" like a programmer in movies and games! Inspired by hackertyper.net -
base-unicode-symbols
Unicode alternatives for common functions and operators -
aeson-serialize
Functions for serializing a type that is an instance of ToJSON -
dependent-sum-template
Template Haskell code to generate instances of classes in dependent-sum package -
argon2
Haskell bindings to libargon2 - the reference implementation of the Argon2 password-hashing function -
servant-streaming
Support for servant requests and responses via the 'streaming' library -
rerebase
Reexports from "base" with a bunch of other standard libraries -
containers-unicode-symbols
Unicode alternatives for common functions and operators -
semver-range
Implementation of semver and NPM-style semantic version ranges in Haskell -
postgresql-simple-sop
Generic functions for postgresql-simple -
hasql-dynamic-statements
Dynamic statements for Hasql -
bitcoind-regtest
A cilent for the bitcoind JSON-RPC interface
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of lrucaching or a related project?
README
lrucaching
An implementation of lrucaches based on a blogpost by Jasper Van der Jeugt.
This package has no relation to
lrucache. I created it
because there were bugs in lrucache
and the maintainer was not
responding to issues.
Usage
The easiest way to use this library is to use Data.LruCache.IO
. This wraps the
cache in a Data.IORef
, a mutable varible in the IO
monad.
e.g. To create a 1000
-item cache, keyed by Integer
, storing String
:
import qualified Data.LruCache.IO as LRU
newCache :: IO (LRU.LruHandle Integer String)
newCache = LRU.newLruHandle 1000
cachedLookup cache key = LRU.cached cache key $
-- insert some something expensive
return $ show key
main :: IO ()
main = do
cache <- newCache
cachedLookup cache 123 >>= putStrLn