hakyll-3.5.2.1: A static website compiler library

Safe HaskellNone

Hakyll.Core.Store

Description

A store for storing and retreiving items

Synopsis

Documentation

data Result a Source

Result of a store query

Constructors

Found a

Found, result

NotFound

Not found

WrongType TypeRep TypeRep

Expected, true type

Instances

Eq a => Eq (Result a) 
Show a => Show (Result a) 

newSource

Arguments

:: Bool

Use in-memory caching

-> FilePath

Directory to use for hard disk storage

-> IO Store

Store

Initialize the store

set :: (Binary a, Typeable a) => Store -> [String] -> a -> IO ()Source

Store an item

get :: (Binary a, Typeable a) => Store -> [String] -> IO (Result a)Source

Load an item

delete :: Store -> [String] -> IO ()Source

Delete an item