File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,20 @@ description: The library provides an interface for caching the results o
29
29
6. outdated values are cleared only on accesses to the cache, so if no action is called
30
30
the data will not be cleared.
31
31
.
32
+ The main entry point of the library is "System.Cache" module, it explains how to
33
+ use the library and provides the public API, that does not depend on the actual
34
+ store implementation.
35
+ .
32
36
The library provides an interface for caching, and three implementations :
33
37
.
34
38
1. "System.Cache.Impl.Ghc" — the main one based on GHC system;
35
39
36
40
2. "System.Cache.Impl.MVar" — implementation based on library functions;
37
41
38
42
3. "System.Cache.Impl.NoCache" — implementation that disables caching, but keeps the same interface
43
+ .
44
+ If you want to implement your own caching mechanism, or use internal API, you
45
+ can refer to the "System.Cache.Internal.Interface" module for an additional documentation.
39
46
extra-source-files :
40
47
CHANGELOG.md
41
48
Readme.md
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE RecursiveDo #-}
2
+ -- | Implementation that provides no caching at all.
3
+ -- Can be useful in order to disable caching without changing
4
+ -- the code at the use sites.
2
5
module System.Cache.Impl.NoCache
3
6
( new
4
7
) where
5
8
6
9
import System.Cache.Internal.Interface
7
10
import System.Clock.Seconds
8
11
12
+ -- | Creates an implementation that does not cache anything.
13
+ -- All actions runs as-is without locking.
9
14
new :: Config -> IO (Handle a b )
10
15
new Config {.. } = do
11
16
pure $ Handle
You can’t perform that action at this time.
0 commit comments