https://toitlang.org/ logo
A few questions about system.storage: Working exa...
# general
m
A few questions about system.storage: Working example below:
Copy code
import system.storage
main :
  bucket := storage.Bucket.open --flash "storage"
  bucket["k1"] = "{\"java\",2,3}"
  print bucket["k1"]
  bucket["k2"] = {"t1" :"token1", "t2" :"token2"}
  print bucket["k2"]
  b := bucket["k2"]
  print "t1->$b["t1"]"
  print "t2->$b["t2"]"
1) How to delete data with key "k1" or "k2" 2) How to delete "storage"?