piermesh/docs/Daisy/Store.md

965 B
Raw Blame History

Store: Daisy key value store

class Daisy.Store.Store(store: str, path: str, nodeNickname: str, daisyCryptography)

Key value store

🔗 Source

epehemeral

Memory only records

  • Type: dict

createEmpty(key: str)

  • Parameters:
    • key (str)
    • key Key to create empty record at

getRecord(key: str, ephemeral=False)

Get record at key

  • Parameters:
    • key (str)
    • ephemeral (bool) Whether key is only in memory, used for session cryptography credentials currently

update(entry: str, data, recur: bool = True, write=True)

Update given record

  • Parameters:
    • entry (str) Key to update record of
    • data Data to update record with
    • recur (bool) Whether to iterate over data
    • write (bool) Whether record is ephemeral