DatacacheStore Class
Note
This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
Represents a storage abstraction over an Azure Machine Learning storage account.
DatacacheStores are attached to workspaces and are used to store information related to the underlying datacache solution. Currently, only partitioned blob solution is supported. Datacachestores defines various Blob datastores that could be used for caching.
Use this class to perform management operations, including register, list, get, and update datacachestores.
DatacacheStores for each service are created with the register*
methods of this class.
Get a datacachestore by name. This call will make a request to the datacache service.
- Inheritance
-
builtins.objectDatacacheStore
Constructor
DatacacheStore(workspace, name, **kwargs)
Parameters
Methods
get_by_name |
Get a datacachestore by name. |
list |
List all the datacachestores in the workspace. |
register |
Register a datacachestore to the workspace. |
update |
Update datacache policy for a datacachestore. |
get_by_name
Get a datacachestore by name.
static get_by_name(workspace, name)
Parameters
Returns
The corresponding datastore for that name.
Return type
list
List all the datacachestores in the workspace.
static list(workspace)
Parameters
Returns
List of DatacacheStore objects.
Return type
register
Register a datacachestore to the workspace.
static register(workspace, name, data_store_list, data_management_compute_target, data_management_compute_auth, ttl_in_days, ttl_expiration_policy, default_replica_count, data_factory_resource_id=None, **kwargs)
Parameters
- data_store_list
The list of underlying datastores.
- data_management_compute_auth
- ServicePrincipalAuthentication
The service principal used to submit data management jobs to data management compute.
- ttl_in_days
- <xref:Int>
Time-To-Live in days.
- ttl_expiration_policy
- str, <xref:one> of [<xref:"LastAccessTime">, <xref:"CreationTime">]
TTL expire policy.
- default_replica_count
- <xref:Int>
Default number of replicas to hydrate.
- data_factory_resource_id
- <xref:str.>
Resource id of the ADF to be used for hydration.
Returns
The DatacacheStore object
Return type
update
Update datacache policy for a datacachestore.
static update(workspace, name, data_management_compute_target=None, data_management_compute_auth=None, ttl_in_days=None, ttl_expiration_policy=None, default_replica_count=None, data_factory_resource_id=None, **kwargs)
Parameters
- data_management_compute_auth
- ServicePrincipalAuthentication
The service principal used to submit data management jobs to data management compute.
- ttl_in_days
- <xref:Int>
Time-To-Live in days.
- ttl_expiration_policy
- str, <xref:one> of [<xref:"LastAccessTime">, <xref:"CreationTime">]
TTL expire policy.
- default_replica_count
- <xref:Int>
Default number of replicas to hydrate.
- data_factory_resource_id
- <xref:str.>
Resource id of the ADF to be used for hydration.
Returns
The DatacacheStore object
Return type
Attributes
data_factory_resource_id
Return the resource id of the Azure data factory which can be used for hydration.
Returns
Resource id of the ADF to be used for hydration.
Return type
data_management_compute_target
Return the name of the data management compute to be used for hydration.
Returns
The data management compute.
Return type
data_store_list
Return the list of underlying datastores for the datacachestores.
Returns
The list of datastores to be used as datacachestores.
Return type
default_replica_count
Return the default number of replicas during hydration.
Returns
Default number of replicas to hydrate.
Return type
name
ttl_expiration_policy
ttl_in_days
Return the Time-to-live policy.
Returns
Time-To-Live in days.
Return type
workspace
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for