IDataSource interface
Generic Key/Value Data Source for crud operation
IDataSource Type - generic type
Signature:
export interface IDataSource<Type>
Methods
Method | Description |
---|---|
delete(key, keyName) | deletes data value for given key with an optional key name |
get(key, keyName) | returns data value for key value and optional key name |
load() | load all object with Type from data source |
save(key, value, keyName) | Save value under the key with optional key name |