The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

KiokuDB::Backend::Files - One file per object backend

SYNOPSIS

    KiokuDB->connect(
        "files:dir=path/to/data",
        serializer => "yaml", # defaults to storable
    );

DESCRIPTION

This backend provides a file based backend, utilizing IO::AtomicFile and File::NFSLock for safety.

This is one of the slower backends, and the support for searching is very limited (only a linear scan is supported), but it is suitable for small, simple projects.

ATTRIBUTES

dir

The directory for the backend.

create

If true (defaults to false) the directories will be created at instantiation time.

lock

Whether or not locking is enabled.

Defaults to true.

object_dir

Defaults to the subdirectory all of dir

root_dir

Defaults to the subdirectory root of dir

Root set entries are hard linked into this directory as well.

trie

If true (defaults to false) instead of one flat hierarchy, the files will be put in subdirectories based on their IDs. This is useful if your file system is limited and you have lots of entries in the database.

trie_nybbles

How many hex nybbles to take off of the ID. Defaults to 3, which means up to 4096 subdirectories per directory.

trie_levels

How many subdirectories to use.

Defaults to 2.

VERSION CONTROL

http://github.com/nothingmuch/kiokudb-backend-files

AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT

    Copyright (c) 2008 Yuval Kogman, Infinity Interactive. All rights
    reserved This program is free software; you can redistribute
    it and/or modify it under the same terms as Perl itself.