Skip to content

Bucket:GetEntry()

paige edited this page Aug 9, 2023 · 4 revisions
  • desc: returns the entry of a key
  • returns: Entry: Table
  • args: Key: String
  • note: equivalent to doing this:
Bucket[ Bucket:IndexOf( Key ) ]
local bucket = Bucket.new({
    "abc",
    { key = "value" }
})

bucket:GetEntry("abc") -- { 1, "abc", "uni" }

bucket:GetEntry("key") -- { "key", "value", "pair" }

Clone this wiki locally