0.1.1 • Published 12 years ago
alldata-keygen v0.1.1
alldata-keygen
Stability: 1 - Experimental
Key generation module for AllData, a distributed master-less write-once immutable event store database implementing "All Data" part of Lambda Architecture.
Usage
var AllDataKeygen = require('alldata-keygen');
var key = AllDataKeygen.createKey();
// 20130927T005240652508858176Test
npm testOverview
AllDataKeygen generates a unique key for every event to be stored in AllData.
Documentation
AllDataKeygen
Public API
AllDataKeygen.createKey()
Creates a new key. Example: 20130927T005240652508858176.
Format is yyyymmddTHHMMsslllnnnnnnnnn
yyyycurrent UTC yearmmcurrent UTC monthddcurrent UTC dayTtime separatorHHcurrent UTC hoursMMcurrent UTC minutessscurrent UTC secondslllcurrent UTC millisecondsnnnnnnnnnnanoseconds "unique" marker fromprocess.hrtime()[1]; could be less than 9 digits
