NAME

DataStore::CAS::Virtual - In-memory CAS for debugging and testing

VERSION

version 0.08

DESCRIPTION

This class implements an in-memory CAS, and is highly "hackable", mainly intended for writing test scenarios.

ATTRIBUTES

digest

The Digest algorithm to use for put.

entries

The actual perl-hashref of digest-hash/content pairs, which are set by 'put' and read by 'get'. You can pre-populate this. The digest-hashes are not checked for accuracy.

METHODS

get

See DataStore::CAS

put_scalar

See DataStore::CAS

This is optimized for directly writing a scalar to the ->entries attribute.

new_write_handle

See DataStore::CAS

commit_write_handle

See DataStore::CAS

open_file

See DataStore::CAS

iterator

Iterates a sorted keys %{$cas-entries}>

See DataStore::CAS

delete

See DataStore::CAS

AUTHOR

Michael Conrad <mconrad@intellitree.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 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.