NAME

DBIx::MoCo::MUID - MUID generator for muid fields

SYNOPSIS

my $muid = DBIx::MoCo::MUID->create_muid();

DESCRIPTION

DBIx::MoCo::MUID provides "almost unique" id for MoCo Unique ID (muid) fields. They are less unique than UUIDs because they only have 64bits long.

They are generated as set of next 3 parts.

20 bits of ip address (last 20 bits) 36 bits of epoch time (lower 36 bits of msec.) (2.179 years) 8 bits of serial

SEE ALSO

DBIx::MoCo

AUTHOR

Junya Kondo, <jkondo@hatena.com>

COPYRIGHT AND LICENSE

Copyright (C) Hatena Inc. All Rights Reserved.

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.