View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Michael Conrad > DataStore-CAS-FS-0.0101 > DataStore::CAS::FS::DirCodec::Minimal

Download:
DataStore-CAS-FS-0.0101.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0100   Source   Latest Release: DataStore-CAS-FS-0.011000

NAME ^

DataStore::CAS::FS::DirCodec::Minimal - Directory representation with minimal metadata

VERSION ^

version 0.0101

DESCRIPTION ^

This class packs a directory as a list of [type, hash, filename], which is very efficient, but omits metadata that you often would want in a backup.

This is primarily intended for making small frequent backups inbetween more thorough nightly backups.

METHODS ^

encode

  $serialized= $class->encode( \@entries, \%metadata )

Serialize the given entries into a scalar.

Serialize the bare minimum fields of each entry. Each entry will have 3 pieces of data saved: type, name, and ref.

The %metadata is encoded using JSON, which isn't very compact, but if you really want a minimal encoding you shouldn't supply metadata anyway.

decode

  $dir= $class->decode( %params )

Reverses encode, to create a Dir object.

See DirCodec->load for details on %params.

AUTHOR ^

Michael Conrad <mconrad@intellitree.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Michael Conrad, and IntelliTree Solutions llc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: