KiokuDB::Set - Set::Object wrapper for KiokuDB with lazy loading.
use KiokuDB::Util qw(set); my $set = set(); # KiokuDB::Set::Transient $set->insert($object); warn $set->size; my $id = $dir->store( $set );
Transient sets are in memory, they are sets that have been constructed by the user for subsequent insertion into storage.
When you create a new set, this is what you should use.
When a set is loaded from the backend, it is deferred by default. This means that the objects inside the set are not yet loaded, and will be fetched only as needed.
When set members are needed, the set is upgraded in place into a KiokuDB::Set::Loaded object.
This is the result of vivifying the members of a deferred set, and is similar to transient sets in implementation.
Yuval Kogman <email@example.com>
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.