Safe Haskell | None |
---|---|
Language | Haskell98 |
Database.KyotoCabinet.DB.CacheTree
Description
Cache tree database
On-memory database using a B+ tree, useful for an ordered cache.
- Persistence: volatile
- Algorithm: B+ tree
- Complexity: O(log n)
- Sequence: custom order
- Lock unit: page (mutex)
- data CacheTree
- data CacheTreeOptions = CacheTreeOptions {
- options :: [Options]
- buckets :: Maybe Int64
- compressor :: Maybe Compressor
- maxRecords :: Maybe Int64
- cipherKey :: Maybe String
- pageSize :: Maybe Int64
- comparator :: Maybe Comparator
- pageCacheSize :: Maybe Int64
- defaultCacheTreeOptions :: CacheTreeOptions
- data Compressor
- data Options = Compress
- data Comparator
- makeCacheTree :: LoggingOptions -> CacheTreeOptions -> Mode -> IO CacheTree
Documentation
data CacheTreeOptions Source #
Constructors
CacheTreeOptions | |
Fields
|
data Compressor Source #
Compression algorithm used. DEFLATE
is the default one.
Constructors
Zlib | The raw zlib compressor |
DEFLATE | zlib deflate compressor |
Gz | zlib gzip compressor |
LZO | LZO compressor |
LZMA | LZMA compressor |
Arc | Arcfour cipher |
Instances
General tuning options
Constructors
Compress | Enable compression of the keys and the values |
makeCacheTree :: LoggingOptions -> CacheTreeOptions -> Mode -> IO CacheTree Source #