Quick Cache | Store your cache data and track threads!


> UPDATE V1.1

  • Added types
  • Added 2 events “onCacheAdded” and “onCacheRemoved”
  • New function “ClearAllCacheWithin”
  • Chainability on “Set” function

Examples:

  • onCacheAdded

QuickCache.onCacheAdded:Connect(function(info:QuickCache.DefaultTable)
	print(`New cache added with key of {info.key} and the value is {info.value}`)
end)
  • onCacheRemoved

QuickCache.onCacheRemoved:Connect(function(info:QuickCache.DefaultTable)
	print(`Cache removed with key of {info.key} and the value is {info.value}`)
end)
  • ClearAllCacheWithin

QuickCache:Set("Key",123,10)
QuickCache:Set("Key2",456,math.random(30,40))
QuickCache:ClearAllCacheWithin("Key")
-- key: nil
-- key2: 456
  • Chainability

QuickCache:Set("Key",123,7)
   .Again("Key2",456,10)
   .Again("Key3",789,84)

What feature you want next?
  • Datastore
  • Convert Cache to Instance
  • Other (reply)

0 voters

1 Like