| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Database.KyotoCabinet.DB.Hash
Description
File hash database.
File hash database: tipical DBM.
- Persistence: persistent
- Algorithm: hash table
- Complexity: O(1)
- Sequence: undefined
- Lock unit: record (rwlock)
- data Hash
- data HashOptions = HashOptions {
- alignmentPow :: Maybe Int8
- freePoolPow :: Maybe Int8
- options :: [Options]
- buckets :: Maybe Int64
- maxSize :: Maybe Int64
- defragInterval :: Maybe Int64
- compressor :: Maybe Compressor
- cipherKey :: Maybe String
- defaultHashOptions :: HashOptions
- data Compressor
- data Options = Compress
- data Comparator
- makeHash :: FilePath -> LoggingOptions -> HashOptions -> Mode -> IO Hash
- openHash :: FilePath -> LoggingOptions -> Mode -> IO Hash
Documentation
data HashOptions Source #
Constructors
| HashOptions | |
Fields
| |
Instances
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 |
makeHash :: FilePath -> LoggingOptions -> HashOptions -> Mode -> IO Hash Source #