register

Register data into an object storage.

Wraps up any already instantiated data that is not reference type into an object, and saves it into storage. Any data that is of reference type is just saved in storage

Parameters

Type

the type of object registered in storage

storage Storage!(Object, string)

the storage were data is saved

data Type

actual data to be saved

id string

the identity of data that is to be saved.

Return Value

Type: auto

the storage were data was saved.

Meta