Giter Site home page Giter Site logo

timmy-the-nobody / ulid Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26 KB

πŸ”– Lua ULID generator (Universally unique Lexicographically sortable IDentifier)

License: GNU General Public License v3.0

Lua 100.00%
algorithm generator lua ulid nanos-world

ulid's Introduction

ULID

ULID

This is a very simple Lua ULID (Universally unique Lexicographically sortable IDentifier) generator

Note: This was made for nanos worldβ„’, if you plan to use it outside you'll have to make some tweaks to the library


ULID.Clear

πŸ”Έ Client
πŸ”Ή Server
Removes the ULID from the cache

@param sULID β€” The ULID to remove

function ULID.Clear(sULID: string)

ULID.Generate

πŸ”Έ Client
πŸ”Ή Server
Generate a random ULID

@param xData β€” The data to bind to the ULID, defaults to true

@return β€” The generated ULID

function ULID.Generate(xData?: any)
  -> string

ULID.Get

πŸ”Έ Client
πŸ”Ή Server
Return a value binded to the passed ULID

@param sULID β€” The ULID to search

@return β€” The value binded to the ULID, defaults to true

function ULID.Get(sULID: string)
  -> any

ULID.GetTable

πŸ”Έ Client
πŸ”Ή Server
Returns the ULID registry

@return β€” The ULID registry

function ULID.GetTable()
  -> table<string, any>

ULID.Store

πŸ”Έ Client
πŸ”Ή Server
Adds an ULID to the cache

@param sULID β€” The ULID to add

@param xData β€” The data to bind to the ULID, defaults to true

function ULID.Store(sULID: string, xData?: any)

ulid's People

Contributors

timmy-the-nobody avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.