RubyGems Navigation menu

torid 1.2.3

Temporally Ordered IDs. Generate universally unique identifiers (UUID) that sort lexically in time order. Torid exists to solve the problem of generating UUIDs that when ordered lexically, they are also ordered temporally. I needed a way to generate ids for events that are entering a system with the following criteria: 1. Fast ID generation 2. No central coordinating server/system 3. No local storage 4. Library code, that is multiple apps on the same machine can use the same code and they will not generate duplicate ids 5. Eventually stored in a UUID field in a database. So 128bit ids are totally fine. The IDs that Torid generates are 128bit IDs made up of 2, 64bit parts. * 64bit microsecond level UNIX timestamp * 64bit hash of the system hostname, process id and a random value.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.3.0 - February 17, 2017 (17.0 KB)
  2. 1.2.5 - December 01, 2016 (17.0 KB)
  3. 1.2.4 - February 18, 2015 (17.0 KB)
  4. 1.2.3 - September 21, 2014 (17.5 KB)
  5. 1.2.2 - September 15, 2014 (17.5 KB)
显示所有版本 (共 9 个)

Runtime 依赖 (1):

fnv ~> 0.2

Development 依赖 (3):

minitest ~> 5.0
rake ~> 10.1
rdoc ~> 4.0

业主:

作者:

  • Jeremy Hinegardner

SHA 256 校验和:

1a53bc111c14df6eef9d6814616f5802c975506622f9701ed82c82c6971aa5dc

下载总量 332,255

这个版本 2,439

许可:

ISC

需要的 Ruby 版本: >= 0

链接: